fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
357 B21 linesraw
1// MIR for `switch_option` after built
2
3fn switch_option(_1: Option<()>) -> bool {
4    let mut _0: bool;
5    let mut _2: isize;
6
7    bb0: {
8        _2 = discriminant(_1);
9        switchInt(_2) -> [0: bb1, 1: bb2, otherwise: bb2];
10    }
11
12    bb1: {
13        _0 = const false;
14        return;
15    }
16
17    bb2: {
18        _0 = const true;
19        return;
20    }
21}