2020-04-02 16:09:01 -05:00
|
|
|
// MIR for `main` after SimplifyCfg-elaborate-drops
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: &[u8; 3];
|
2020-04-02 16:09:01 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
let _2: [u8; 2];
|
2020-04-02 16:09:01 -05:00
|
|
|
scope 2 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug y => _2;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
|
|
|
_1 = const b"foo";
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = [const 5_u8, const 120_u8];
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2020-04-02 16:09:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-15 12:00:11 -05:00
|
|
|
ALLOC0 (size: 3, align: 1) {
|
2020-04-02 16:09:01 -05:00
|
|
|
66 6f 6f │ foo
|
|
|
|
}
|