diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-10-06 13:07:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 13:07:50 +0000 |
commit | b4096017e3b9ca499b56988b67e05667a02ca202 (patch) | |
tree | cf7011c7659af1416f4a109f81bc264f4686ecef /gcc/rust/rust-lang.cc | |
parent | adaf4561d63f08714f8c289bef0f4c5649fb6829 (diff) | |
parent | a7d2643d9b09af9f5c5c670626becaa0c0fc1481 (diff) | |
download | gcc-b4096017e3b9ca499b56988b67e05667a02ca202.zip gcc-b4096017e3b9ca499b56988b67e05667a02ca202.tar.gz gcc-b4096017e3b9ca499b56988b67e05667a02ca202.tar.bz2 |
Merge #1562
1562: Support looking up super trait items during path resolution r=philberty a=philberty
When we lookup names in paths such as Foo::bar, foo is a type we resolve
and then we lookup 'bar' based on what type Foo is which includes probing
relevant bounds of this type. We currently return a vector of possible
candidates and this patch changes it so that we return a vector of unique
items based on DefId. Ideally we should use move to a std::set for this.
The final patch actually updates the trait reference lookup functions to revert
to looking up relevant super traits when required.
Fixes #1555
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
0 files changed, 0 insertions, 0 deletions