aboutsummaryrefslogtreecommitdiff
path: root/gcc/file-prefix-map.c
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-06-14 16:11:33 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-06-14 16:31:46 +0100
commitde454a17cf5f9cbd7e4af895174c82e4a6890c36 (patch)
tree2668b0790ca07ad86723b4c08320a16bfcf9bf1a /gcc/file-prefix-map.c
parent75c44883dbe84682beabc92db7c89bc6db491db8 (diff)
downloadgcc-de454a17cf5f9cbd7e4af895174c82e4a6890c36.zip
gcc-de454a17cf5f9cbd7e4af895174c82e4a6890c36.tar.gz
gcc-de454a17cf5f9cbd7e4af895174c82e4a6890c36.tar.bz2
Fix PathExpression type resolution
There are cases where the name resolver can fully resolve a path such as: ```rust struct Foo(i32); impl Foo{ fn new() { ... } } fn main() { let a; a = Foo::new(); } ``` This case does not require a PathProbe. This enhances the Path resolution to iterate each segment untill we are unable to resolve the root segment at that point we can fall back to a PathProbe and lookup any impl item that might satisfy the path instead. Addresses #432
Diffstat (limited to 'gcc/file-prefix-map.c')
0 files changed, 0 insertions, 0 deletions