diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2025-03-24 18:31:12 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-31 21:07:17 +0200 |
commit | 45bd8bef02cb144f92119256f9f13d739e259b73 (patch) | |
tree | 5799efb8cb12809d12f08b3a59846785c7698cb3 /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | 3ef5915e5f56c04f2e70638eaa46f0baa2a1c388 (diff) | |
download | gcc-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