rust/tests/mir-opt/building/enum_cast.bar.built.after.mir
Scott McMurray 01524abb05 MIR-build: No longer emit assumes in enum-as casting
This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads.
2025-07-24 10:18:37 -07:00

17 lines
322 B
Rust

// MIR for `bar` after built
fn bar(_1: Bar) -> usize {
debug bar => _1;
let mut _0: usize;
let _2: Bar;
let mut _3: isize;
bb0: {
StorageLive(_2);
_2 = move _1;
_3 = discriminant(_2);
_0 = move _3 as usize (IntToInt);
StorageDead(_2);
return;
}
}