aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2025-03-24 18:31:12 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-31 21:07:17 +0200
commit45bd8bef02cb144f92119256f9f13d739e259b73 (patch)
tree5799efb8cb12809d12f08b3a59846785c7698cb3 /gcc/rust/backend/rust-compile-resolve-path.cc
parent3ef5915e5f56c04f2e70638eaa46f0baa2a1c388 (diff)
downloadgcc-45bd8bef02cb144f92119256f9f13d739e259b73.zip
gcc-45bd8bef02cb144f92119256f9f13d739e259b73.tar.gz
gcc-45bd8bef02cb144f92119256f9f13d739e259b73.tar.bz2
gccrs: Resolve module final self segment in use decls
Lowercase self suffix with path was not resolved properly, this should point to the module right before. gcc/rust/ChangeLog: * resolve/rust-forever-stack.hxx: Add a new specialized function to retrieve the last "real" segment depending on the namespace. * resolve/rust-forever-stack.h: Add new function prototype. * resolve/rust-early-name-resolver-2.0.cc (Early::finalize_rebind_import): Set declared name according to the selected segment, if there is a self suffix in the use declaration then select the previous segment. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions