2021-06-16 00:46:56 -05:00
|
|
|
- // MIR for `invalid` before EnumSizeOpt
|
|
|
|
+ // MIR for `invalid` after EnumSizeOpt
|
|
|
|
|
2023-02-05 16:14:40 -06:00
|
|
|
fn invalid() -> InvalidIdxs {
|
|
|
|
let mut _0: InvalidIdxs; // return place in scope 0 at $DIR/enum_opt.rs:+0:21: +0:32
|
2022-06-24 03:48:07 -05:00
|
|
|
let mut _1: InvalidIdxs; // in scope 0 at $DIR/enum_opt.rs:+1:7: +1:12
|
|
|
|
let mut _2: InvalidIdxs; // in scope 0 at $DIR/enum_opt.rs:+2:7: +2:36
|
|
|
|
let mut _3: [u64; 1024]; // in scope 0 at $DIR/enum_opt.rs:+2:26: +2:35
|
2021-06-16 00:46:56 -05:00
|
|
|
scope 1 {
|
2022-06-24 03:48:07 -05:00
|
|
|
debug a => _1; // in scope 1 at $DIR/enum_opt.rs:+1:7: +1:12
|
2021-06-16 00:46:56 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-06-24 03:48:07 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/enum_opt.rs:+1:7: +1:12
|
2023-02-05 16:14:40 -06:00
|
|
|
_1 = InvalidIdxs::A; // scope 0 at $DIR/enum_opt.rs:+1:15: +1:29
|
2022-06-24 03:48:07 -05:00
|
|
|
StorageLive(_2); // scope 1 at $DIR/enum_opt.rs:+2:7: +2:36
|
|
|
|
StorageLive(_3); // scope 1 at $DIR/enum_opt.rs:+2:26: +2:35
|
|
|
|
_3 = [const 0_u64; 1024]; // scope 1 at $DIR/enum_opt.rs:+2:26: +2:35
|
2023-02-05 16:14:40 -06:00
|
|
|
_2 = InvalidIdxs::Large(move _3); // scope 1 at $DIR/enum_opt.rs:+2:7: +2:36
|
2022-06-24 03:48:07 -05:00
|
|
|
StorageDead(_3); // scope 1 at $DIR/enum_opt.rs:+2:35: +2:36
|
|
|
|
_1 = move _2; // scope 1 at $DIR/enum_opt.rs:+2:3: +2:36
|
|
|
|
StorageDead(_2); // scope 1 at $DIR/enum_opt.rs:+2:35: +2:36
|
2023-02-05 16:14:40 -06:00
|
|
|
_0 = move _1; // scope 1 at $DIR/enum_opt.rs:+3:3: +3:4
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/enum_opt.rs:+4:1: +4:2
|
|
|
|
return; // scope 0 at $DIR/enum_opt.rs:+4:2: +4:2
|
2021-06-16 00:46:56 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|