about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-05-18 08:41:15 +0200
committerGitHub <noreply@github.com>2022-05-18 08:41:15 +0200
commit49048eab47b2bb6cbba518c6477d0054cc3fc780 (patch)
tree84a6f61c4fa407f3b9f0801d96ab834c396bfa6c /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent04f903859a8a1b82a25b6bba7301beb06ad145d2 (diff)
parent0de7568e417ae001a45ae0a85b8bc2067a5f9c46 (diff)
downloadrust-49048eab47b2bb6cbba518c6477d0054cc3fc780.tar.gz
rust-49048eab47b2bb6cbba518c6477d0054cc3fc780.zip
Rollup merge of #96378 - compiler-errors:trait-upcast-error, r=nagisa
Mention traits and types involved in unstable trait upcasting

Fixes #95972  by printing the traits being upcasted and the types being coerced that cause that upcasting...

---

the poor span mentioned in the original issue has nothing to do with trait upcasting diagnostic here...

>  The original example I had that made me run into this issue had an even longer expression there (multiple chained
iterator methods) which just got all highlighted as one big block saying "somewhere here trait coercion is used and it's not allowed".

I don't think I can solve that issue in general without fixing the ObligationCauseCode and span that gets passed into Coerce.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions