summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-23 06:45:34 +0200
committerGitHub <noreply@github.com>2024-09-23 06:45:34 +0200
commit82060368e638d07f5ea5cf4f04c0e37edb829e28 (patch)
tree5003fd53f3f27b40906f560650f4e9dcf32116fb /compiler/rustc_pattern_analysis
parent9f5cbfb455ee0905b7984fe13d50a8bad76f0247 (diff)
parent01d19d7be9b1fdcaa93eef4317c46f7330093061 (diff)
downloadrust-82060368e638d07f5ea5cf4f04c0e37edb829e28.tar.gz
rust-82060368e638d07f5ea5cf4f04c0e37edb829e28.zip
Rollup merge of #130712 - compiler-errors:const-eval-error-reporting, r=BoxyUwU
Don't call `ty::Const::normalize` in error reporting

We do this to ensure that trait refs with unevaluated consts have those consts simplified to their evaluated forms. Instead, use `try_normalize_erasing_regions`.

**NOTE:** This has the side-effect of erasing regions from all of our trait refs. If this is too much to review or you think it's too opinionated of a diagnostics change, then I could split out the effective change (i.e. erasing regions from this impl suggestion) into another PR and have someone else review it.
Diffstat (limited to 'compiler/rustc_pattern_analysis')
0 files changed, 0 insertions, 0 deletions