aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2025-01-07 14:03:13 -0500
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:56:55 +0100
commit2fa9719068774ab7ec5ed4cbe95cfe30fa94dbb1 (patch)
tree9b54b166afd3fb6a6231e54a247d8440aab9d8e7 /gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
parentd3efd2a91f54a19c3c2d59d690c447c0def26367 (diff)
downloadgcc-2fa9719068774ab7ec5ed4cbe95cfe30fa94dbb1.zip
gcc-2fa9719068774ab7ec5ed4cbe95cfe30fa94dbb1.tar.gz
gcc-2fa9719068774ab7ec5ed4cbe95cfe30fa94dbb1.tar.bz2
gccrs: nr2.0: Resolve Self inside impl blocks
gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Insert a definition for Self when visiting InherentImpl and TraitImpl instances. * resolve/rust-toplevel-name-resolver-2.0.h (TopLevel::visit): Add visitors for InherentImpl and TraitImpl. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove entries. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h')
-rw-r--r--gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
index 64d2174..fabcb5b 100644
--- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
+++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.h
@@ -148,6 +148,8 @@ private:
void visit (AST::Module &module) override;
void visit (AST::Trait &trait) override;
+ void visit (AST::InherentImpl &impl) override;
+ void visit (AST::TraitImpl &impl) override;
void visit (AST::TraitItemType &trait_item) override;
void visit (AST::MacroRulesDefinition &macro) override;
void visit (AST::Function &function) override;