rust/compiler/rustc_trait_selection/src
Matthias Krüger 82060368e6
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.
2024-09-23 06:45:34 +02:00
..
error_reporting Rollup merge of #130712 - compiler-errors:const-eval-error-reporting, r=BoxyUwU 2024-09-23 06:45:34 +02:00
errors Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
solve Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
traits Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
infer.rs Remove #[macro_use] extern crate tracing from rustc_trait_selection. 2024-08-30 17:14:59 +10:00
lib.rs Add warn(unreachable_pub) to rustc_trait_selection. 2024-09-03 08:49:54 +10:00
regions.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
solve.rs Rename a bunch of things 2024-06-21 12:32:05 -04:00