diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-23 06:45:36 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-23 06:45:36 +0200 | 
| commit | 0e08d7002b6eb44163efbab84cb39d3463c67699 (patch) | |
| tree | a6238d3a1396ed5f3120e7db2738a9e19830b22a /compiler/rustc_pattern_analysis/tests/complexity.rs | |
| parent | 2bca5c4fc1a27a7913dd4d7eb5bc98cc84977d17 (diff) | |
| parent | 2273aeed9decabdbbb0713a8b0749de0e9cd4ea7 (diff) | |
| download | rust-0e08d7002b6eb44163efbab84cb39d3463c67699.tar.gz rust-0e08d7002b6eb44163efbab84cb39d3463c67699.zip | |
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 😺
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests/complexity.rs')
0 files changed, 0 insertions, 0 deletions
