aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-01-30 23:57:46 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-01-31 00:14:31 +0000
commit4c36c7c8d31e92d780f925b3bb62eec7db052442 (patch)
tree5fda817832faec93924e017371321bb110ffdb48 /gcc/rust/backend/rust-compile-resolve-path.cc
parent631f7ae7b9dbb55ed3adce942952f93b48983a53 (diff)
downloadgcc-4c36c7c8d31e92d780f925b3bb62eec7db052442.zip
gcc-4c36c7c8d31e92d780f925b3bb62eec7db052442.tar.gz
gcc-4c36c7c8d31e92d780f925b3bb62eec7db052442.tar.bz2
Fixup logic in canonical-path for impl-blocks
Impl blocks canonical prefix when the size is one will only contain the respective crate name but impl blocks canonical path will be of the Self type which has its own respective crate and path so this will become the canonical path of this. If the segment size greater than one this means it is likely inside a mod block or other item so this means we should just append as usual.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions