]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Some assorted tweaks and bug fixes
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 11 Jan 2025 05:15:05 +0000 (00:15 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 28 Apr 2025 14:19:29 +0000 (16:19 +0200)
commit2128f8f47de45030fde66b66e52be2ca15a1559d
tree1c26699a202f75cf483a4a8163da8fcdb3bb4507
parentdc351dac40989afbc0601e5156017528aa905837
gccrs: Some assorted tweaks and bug fixes

gcc/rust/ChangeLog:

* ast/rust-ast-visitor.cc
(DefaultASTVisitor::visit): Visit the loop labels of
WhileLetLoopExpr instances before visiting their scrutinee
expressions.
* resolve/rust-early-name-resolver-2.0.cc
(Early::resolve_glob_import): Pass the glob import's path
directly to NameResolutionContext::resolve_path.
* resolve/rust-toplevel-name-resolver-2.0.cc
(TopLevel::visit): Remove unnecessary call to
Identifier::as_string.
(flatten_glob): Improve handling of cases where a glob use tree
has no path.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-ast-visitor.cc
gcc/rust/resolve/rust-early-name-resolver-2.0.cc
gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc