]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve canonical path handling for impl items
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 3 May 2025 00:28:15 +0000 (20:28 -0400)
committerPhilip Herron <philip.herron@embecosm.com>
Wed, 7 May 2025 15:33:20 +0000 (15:33 +0000)
commit98573bd61ef95e4224bc2d050fa1f47d893f2c31
tree164dde56df7e6c356b54d041ecb21034eea73893
parent927d067721e91ad3d702f9b9efaf939afd319ef1
Improve canonical path handling for impl items

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-item.cc
(ResolveItem::visit): Use the return values of
CanonicalPath::inherent_impl_seg and
CanonicalPath::trait_impl_projection_seg more directly.
* util/rust-canonical-path.h
(CanonicalPath::trait_impl_projection_seg): Append "<impl "
instead of "<" to the beginning of the returned path segment.
(CanonicalPath::inherent_impl_seg): Likewise.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/resolve/rust-ast-resolve-item.cc
gcc/rust/util/rust-canonical-path.h