2021-06-16 05:46:56 +00:00
|
|
|
- // MIR for `invalid` before EnumSizeOpt
|
|
|
|
+ // MIR for `invalid` after EnumSizeOpt
|
|
|
|
|
|
|
|
fn invalid() -> () {
|
2022-06-24 08:48:07 +00:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/enum_opt.rs:+0:18: +0:18
|
|
|
|
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 05:46:56 +00:00
|
|
|
scope 1 {
|
2022-06-24 08:48:07 +00:00
|
|
|
debug a => _1; // in scope 1 at $DIR/enum_opt.rs:+1:7: +1:12
|
2021-06-16 05:46:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-06-24 08:48:07 +00:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/enum_opt.rs:+1:7: +1:12
|
|
|
|
Deinit(_1); // scope 0 at $DIR/enum_opt.rs:+1:15: +1:29
|
|
|
|
discriminant(_1) = 0; // scope 0 at $DIR/enum_opt.rs:+1:15: +1:29
|
|
|
|
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
|
|
|
|
Deinit(_2); // scope 1 at $DIR/enum_opt.rs:+2:7: +2:36
|
|
|
|
((_2 as Large).0: [u64; 1024]) = move _3; // scope 1 at $DIR/enum_opt.rs:+2:7: +2:36
|
|
|
|
discriminant(_2) = 1; // scope 1 at $DIR/enum_opt.rs:+2:7: +2:36
|
|
|
|
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
|
|
|
|
_0 = const (); // scope 0 at $DIR/enum_opt.rs:+0:18: +3:2
|
|
|
|
StorageDead(_1); // scope 0 at $DIR/enum_opt.rs:+3:1: +3:2
|
|
|
|
return; // scope 0 at $DIR/enum_opt.rs:+3:2: +3:2
|
2021-06-16 05:46:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|