2022-09-04 20:00:31 -07:00
|
|
|
// MIR for `foo` after built
|
2022-06-29 14:18:55 +00:00
|
|
|
|
|
|
|
fn foo(_1: Foo) -> usize {
|
2023-06-06 09:47:00 -04:00
|
|
|
debug foo => _1;
|
|
|
|
let mut _0: usize;
|
|
|
|
let _2: Foo;
|
|
|
|
let mut _3: isize;
|
2022-06-29 14:18:55 +00:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 09:47:00 -04:00
|
|
|
StorageLive(_2);
|
|
|
|
_2 = move _1;
|
|
|
|
_3 = discriminant(_2);
|
|
|
|
_0 = move _3 as usize (IntToInt);
|
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2022-06-29 14:18:55 +00:00
|
|
|
}
|
|
|
|
}
|