summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.unsigny.built.after.mir
blob: a232ab942b7ae2937c26fb2e81cc951b8ba620f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// MIR for `unsigny` after built

fn unsigny(_1: UnsignedAroundZero) -> u16 {
    debug x => _1;
    let mut _0: u16;
    let _2: UnsignedAroundZero;
    let mut _3: u16;

    bb0: {
        StorageLive(_2);
        _2 = move _1;
        _3 = discriminant(_2);
        _0 = move _3 as u16 (IntToInt);
        StorageDead(_2);
        return;
    }
}