]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: nr2.0: Adjust visitors for struct expressions
authorOwen Avery <powerboat9.gamer@gmail.com>
Sun, 9 Feb 2025 08:28:43 +0000 (03:28 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:30:42 +0000 (13:30 +0100)
commitf1ccfd074bc3a95eb6289c08b44f79aed8ad7b84
tree7b02f443ec416ae606a9d0f60a30bccd09033178
parent6b0faf2946a390d5e1493391f5f1eed71b469254
gccrs: nr2.0: Adjust visitors for struct expressions

gcc/rust/ChangeLog:

* ast/rust-ast-visitor.cc
(DefaultASTVisitor::visit): Make sure to always visit the struct
name.
* resolve/rust-late-name-resolver-2.0.cc
(Late::visit): Avoid visiting the struct name twice.

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: Remove entries.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-ast-visitor.cc
gcc/rust/resolve/rust-late-name-resolver-2.0.cc
gcc/testsuite/rust/compile/nr2/exclude