Stop inverting expectation in normalization errors by compiler-errors · Pull Request #131795 · rust-lang/rust (original) (raw)

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Oct 20, 2024

@rust-timer

Rollup merge of rust-lang#131795 - compiler-errors:expectation, r=Nadrieril

Stop inverting expectation in normalization errors

We have some funky special case logic to invert the expectation and actual type for normalization errors depending on their cause code. IMO most of the error messages get better, except for try {} blocks' type expectations. I think that these need to be special cased in some other way, rather than via this hack.

Fixes rust-lang#131763