summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/retag.main-{closure#0}.SimplifyCfg-elaborate-drops.after.panic-abort.mir
blob: 7f3310919cade43237398b5cddc8ba56650c32b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// MIR for `main::{closure#0}` after SimplifyCfg-elaborate-drops

fn main::{closure#0}(_1: &{closure@main::{closure#0}}, _2: &i32) -> &i32 {
    debug x => _2;
    let mut _0: &i32;
    let _3: &i32;
    scope 1 {
        debug _y => _3;
    }

    bb0: {
        Retag([fn entry] _1);
        Retag([fn entry] _2);
        StorageLive(_3);
        _3 = _2;
        Retag(_3);
        _0 = &(*_2);
        StorageDead(_3);
        return;
    }
}