summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/custom/enums.set_discr.built.after.mir
blob: 7de9ed0983fe80a2787988eed3e541ae340a86c1 (plain)
1
2
3
4
5
6
7
8
9
10
// MIR for `set_discr` after built

fn set_discr(_1: &mut Option<()>) -> () {
    let mut _0: ();                      // return place in scope 0 at $DIR/enums.rs:+0:39: +0:39

    bb0: {
        discriminant((*_1)) = 0;         // scope 0 at $DIR/enums.rs:+2:9: +2:36
        return;                          // scope 0 at $DIR/enums.rs:+3:9: +3:17
    }
}