about summary refs log tree commit diff
path: root/tests/codegen/inline-hint.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-25 16:48:21 +0200
committerGitHub <noreply@github.com>2024-07-25 16:48:21 +0200
commit4cf41969078aabf060cbe69cf8628ef5edf92b71 (patch)
treeb072381e7b48aaac58f75b8190fa5bb8497dfc6a /tests/codegen/inline-hint.rs
parent5a853d02f1b2f07d6600a5d193712e7d86274f35 (diff)
parentd004edf311eef38e91a6cd490629c60b55d16e09 (diff)
downloadrust-4cf41969078aabf060cbe69cf8628ef5edf92b71.tar.gz
rust-4cf41969078aabf060cbe69cf8628ef5edf92b71.zip
Rollup merge of #128172 - compiler-errors:non-self-arg, r=chenyukang
Don't ICE if HIR and middle types disagree in borrowck error reporting

We try to match up the `middle::ty::Ty` and `hir::Ty` types in borrowck error reporting, but due to things like `Self` self type alias, or regular type aliases, these might not match up. Don't ICE.

This PR also tries to recover the error by looking up the self type of the impl in case we see `Self`. The diagnostic is frankly quite confusing, but I also didn't really want to look at it because I don't understand the conflict error reporting logic. 🤷

Fixes #121816
Diffstat (limited to 'tests/codegen/inline-hint.rs')
0 files changed, 0 insertions, 0 deletions