Skip to content

Commit 0cfcf59

Browse files
Polygonalrdkm
authored andcommitted
nr2.0: Update IdentifierPattern's subpattern name resolution
gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::visit(IdentifierPattern)): Remove redundant subpattern check. Signed-off-by: Yap Zhi Heng <[email protected]>
1 parent e97425a commit 0cfcf59

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gcc/rust/resolve/rust-late-name-resolver-2.0.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,7 @@ visit_identifier_as_pattern (NameResolutionContext &ctx,
251251
void
252252
Late::visit (AST::IdentifierPattern &identifier)
253253
{
254-
if (identifier.has_subpattern ())
255-
{
256-
DefaultResolver::visit (identifier.get_subpattern ());
257-
}
254+
DefaultResolver::visit (identifier);
258255

259256
visit_identifier_as_pattern (ctx, identifier.get_ident (),
260257
identifier.get_locus (),

0 commit comments

Comments
 (0)