]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Insert imports in all namespaces they were resolved in
authorArthur Cohen <arthur.cohen@embecosm.com>
Mon, 8 Apr 2024 16:44:15 +0000 (18:44 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:13 +0000 (15:32 +0100)
commit3118129c0c96a87f187b319c65b819b71e633f2f
treeb08e9d67742704d158de5ea07b28e93ae8c8eafe
parent924446743f6e21efa745ec1b051e9f37887e32f9
gccrs: Insert imports in all namespaces they were resolved in

gcc/rust/ChangeLog:

* resolve/rust-early-name-resolver-2.0.cc (Early::resolve_simple_import):
Insert import in all namespaces where they were resolved.
(Early::resolve_rebind_import): Likewise.
* resolve/rust-early-name-resolver-2.0.h: Improve APIs, make them
accept multiple resolutions.
* resolve/rust-finalize-imports-2.0.cc: Handle multiple resolutions.
* resolve/rust-name-resolution-context.h (resolve_path): Remove function.
gcc/rust/resolve/rust-early-name-resolver-2.0.cc
gcc/rust/resolve/rust-early-name-resolver-2.0.h
gcc/rust/resolve/rust-finalize-imports-2.0.cc
gcc/rust/resolve/rust-name-resolution-context.h