about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-20 12:11:11 +0900
committerGitHub <noreply@github.com>2020-10-20 12:11:11 +0900
commit3f1c637db4ba835a7a79a84566dae4a1b1e4a1ac (patch)
tree7dc771caed099ece562d3b4b6f650ff7b81b6d8c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentaebeec7e5aa58a6538e434f4fcc7b861b2123ab4 (diff)
parentc146e8c54fa0b99defd1ba77ad4d6505c491f4f3 (diff)
downloadrust-3f1c637db4ba835a7a79a84566dae4a1b1e4a1ac.tar.gz
rust-3f1c637db4ba835a7a79a84566dae4a1b1e4a1ac.zip
Rollup merge of #78111 - SNCPlay42:not-always-self, r=lcnr
Trait predicate ambiguities are not always in `Self`

When reporting ambiguities in trait predicates, the compiler incorrectly assumed the ambiguity was always in the type the trait should be implemented on, and never the generic parameters of the trait. This caused silly suggestions for predicates like `<KnownType as Trait<_>>`, such as giving explicit types to completely unrelated variables that happened to be of type `KnownType`.

This also reverts #73027, which worked around this issue in some cases and does not appear to be necessary any more.

fixes #77982
fixes #78055
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions