mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
0e08d7002b
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 😺 |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
messages.ftl |