nr2.0: Update IdentifierPattern's subpattern name resolution#3828
Conversation
gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::visit(IdentifierPattern)): Remove redundant subpattern check. Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
|
@P-E-P it looks like rust_assert (has_subpattern ()); |
Right now the focus is the semantic aspect within the class ("yes that value can be missing and that null pointer IS a bug"), not at the class boundaries. This means you can keep the assert on the getter, if you really want to go the extra mile you can even rename it to |
|
Oh, wait, nvm -- I should have read the patch more closely. Looks good |
Addresses this comment, thanks to @P-E-P for explaining the rationale for this change over meeting :)
make check-rustpasses locallyclang-formatgcc/testsuite/rust/