2020-09-13 09:04:45 -05:00
|
|
|
- // MIR for `dont_opt` before RemoveUnneededDrops
|
|
|
|
+ // MIR for `dont_opt` after RemoveUnneededDrops
|
|
|
|
|
|
|
|
fn dont_opt(_1: Vec<bool>) -> () {
|
2022-07-27 13:47:42 -05:00
|
|
|
debug x => _1; // in scope 0 at $DIR/remove_unneeded_drops.rs:+0:13: +0:14
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/remove_unneeded_drops.rs:+0:27: +0:27
|
|
|
|
let _2: (); // in scope 0 at $DIR/remove_unneeded_drops.rs:+1:5: +1:12
|
|
|
|
let mut _3: std::vec::Vec<bool>; // in scope 0 at $DIR/remove_unneeded_drops.rs:+1:10: +1:11
|
2020-02-08 13:31:09 -06:00
|
|
|
scope 1 (inlined std::mem::drop::<Vec<bool>>) { // at $DIR/remove_unneeded_drops.rs:9:5: 9:12
|
2022-02-27 09:09:52 -06:00
|
|
|
debug _x => _3; // in scope 1 at $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2020-09-13 09:04:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/remove_unneeded_drops.rs:+1:5: +1:12
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageLive(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:+1:10: +1:11
|
|
|
|
_3 = move _1; // scope 0 at $DIR/remove_unneeded_drops.rs:+1:10: +1:11
|
2022-02-27 09:09:52 -06:00
|
|
|
drop(_3) -> [return: bb2, unwind: bb1]; // scope 1 at $SRC_DIR/core/src/mem/mod.rs:LL:COL
|
2020-09-13 09:04:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1 (cleanup): {
|
2022-07-27 13:47:42 -05:00
|
|
|
resume; // scope 0 at $DIR/remove_unneeded_drops.rs:+0:1: +2:2
|
2020-09-13 09:04:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2022-07-27 13:47:42 -05:00
|
|
|
StorageDead(_3); // scope 0 at $DIR/remove_unneeded_drops.rs:+1:11: +1:12
|
2023-01-25 10:55:30 -06:00
|
|
|
nop; // scope 0 at $DIR/remove_unneeded_drops.rs:+1:12: +1:13
|
2022-07-27 13:47:42 -05:00
|
|
|
nop; // scope 0 at $DIR/remove_unneeded_drops.rs:+0:27: +2:2
|
|
|
|
return; // scope 0 at $DIR/remove_unneeded_drops.rs:+2:2: +2:2
|
2020-09-13 09:04:45 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|