rust/tests/mir-opt/building/enum_cast.far.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
320 B
Rust

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