about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-11-16 15:59:40 +0900
committerGitHub <noreply@github.com>2021-11-16 15:59:40 +0900
commitd44cec3453ce1645c1b17b54b8fbec989d4ab0d3 (patch)
tree91dd1bb4de99e3ab2e3b4a8289230a83798ca9e4 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb17de50a4182c1e5df1abec5374a09d28dcb387a (diff)
parentd58d52a39759960009ca2817f7edcdf22d8722df (diff)
downloadrust-d44cec3453ce1645c1b17b54b8fbec989d4ab0d3.tar.gz
rust-d44cec3453ce1645c1b17b54b8fbec989d4ab0d3.zip
Rollup merge of #90819 - JakobDegen:issue-90804, r=petrochenkov
Fixes incorrect handling of TraitRefs when emitting suggestions.

Closes #90804 , although there were more issues here that were hidden by the thing that caused this ICE.

Underlying problem was that substitutions were being thrown out, which not only leads to an ICE but also incorrect diagnostics. On top of that, in some cases the self types from the root obligations were being mixed in with those from derived obligations.

This makes a couple diagnostics arguable worse ("`B<C>` does not implement `Copy`" instead of "`C` does not implement `Copy`") but the worse diagnostics are at least still correct and that downside is in my opinion clearly outweighed by the benefits of fixing the ICE and unambiguously wrong diagnostics.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions