]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: nr2.0: Handle global paths
authorOwen Avery <powerboat9.gamer@gmail.com>
Tue, 25 Mar 2025 02:49:12 +0000 (22:49 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 8 Apr 2025 08:17:11 +0000 (10:17 +0200)
commit0282fd7cabe365e639deb8848cf29fbd00470e63
tree335d914e75b012cf89938d9bc45f7de087f4deae
parentdb5a399d13b7fdafb7eaa7d299db777615ff0be2
gccrs: nr2.0: Handle global paths

gcc/rust/ChangeLog:

* resolve/rust-forever-stack.h
(ForeverStack::ForeverStack): Initialize extern_prelude.
(ForeverStack::resolve_path): Add parameter
has_opening_scope_resolution.
(ForeverStack::extern_prelude): Add field.
* resolve/rust-forever-stack.hxx: Include rust-edition.h.
(ForeverStacl::resolve_path): Handle global paths (paths with an
opening scope resolution operator).
* resolve/rust-late-name-resolver-2.0.cc
(Late::visit): Handle global paths.
* resolve/rust-name-resolution-context.h
(NameResolutionContext::resolve_path): Handle global paths.

gcc/testsuite/ChangeLog:

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

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/resolve/rust-forever-stack.h
gcc/rust/resolve/rust-forever-stack.hxx
gcc/rust/resolve/rust-late-name-resolver-2.0.cc
gcc/rust/resolve/rust-name-resolution-context.h
gcc/testsuite/rust/compile/nr2/exclude