diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2025-04-01 17:50:32 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-08 10:17:15 +0200 |
commit | 2f955bea137ac20963f781a22b16ced584e110ff (patch) | |
tree | 504742d8d427cc70a0cd6c087dfbc51bba871c16 /gcc/rust/ast | |
parent | 381da0e21dac1579156de9d76d58610b104f5699 (diff) | |
download | gcc-2f955bea137ac20963f781a22b16ced584e110ff.zip gcc-2f955bea137ac20963f781a22b16ced584e110ff.tar.gz gcc-2f955bea137ac20963f781a22b16ced584e110ff.tar.bz2 |
gccrs: nr2.0: Remove duplicate self visit
gcc/rust/ChangeLog:
* ast/rust-ast-visitor.cc
(DefaultASTVisitor::visit): Remove explicit visitation of a
function's self parameter, as if it exists it'll be visited as
one of the function parameters.
gcc/testsuite/ChangeLog:
* rust/compile/nr2/exclude: Remove entry.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r-- | gcc/rust/ast/rust-ast-visitor.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-visitor.cc b/gcc/rust/ast/rust-ast-visitor.cc index ba5f87b..9a8c24f 100644 --- a/gcc/rust/ast/rust-ast-visitor.cc +++ b/gcc/rust/ast/rust-ast-visitor.cc @@ -824,8 +824,6 @@ DefaultASTVisitor::visit (AST::Function &function) visit (function.get_qualifiers ()); for (auto &generic : function.get_generic_params ()) visit (generic); - if (function.has_self_param ()) - visit (function.get_self_param ()); for (auto ¶m : function.get_function_params ()) visit (param); if (function.has_return_type ()) |