rust/compiler/rustc_pattern_analysis
Matthias Krüger 0e08d7002b
Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=BoxyUwU
Replace calls to `ty::Const::{try_}eval` in mir build/pattern analysis

We normalize consts in writeback: #130645. This means that consts are gonna be as normalized as they're ever gonna get in MIR building and pattern analysis. Therefore we can just use `try_to_target_usize` rather than calling `eval_target_usize`.

Regarding the `.expect` calls, I'm not totally certain whether they're correct given rigid unevaluated consts. But this PR shouldn't make *more* ICEs occur; we may have to squash these ICEs when mGCE comes around, tho 😺
2024-09-23 06:45:36 +02:00
..
src Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=BoxyUwU 2024-09-23 06:45:36 +02:00
tests Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
Cargo.toml bump tracing-tree to 0.3 2024-03-30 17:39:43 +03:00
messages.ftl Lint small gaps between ranges 2024-03-09 01:14:22 +01:00