]>
Commit | Line | Data |
---|---|---|
f25598a0 FG |
1 | // MIR for `switch_option` after built |
2 | ||
3 | fn switch_option(_1: Option<()>) -> bool { | |
4 | let mut _0: bool; // return place in scope 0 at $DIR/enums.rs:+0:45: +0:49 | |
5 | let mut _2: isize; // in scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL | |
6 | ||
7 | bb0: { | |
8 | _2 = discriminant(_1); // scope 0 at $SRC_DIR/core/src/intrinsics/mir.rs:LL:COL | |
9 | switchInt(_2) -> [0: bb1, 1: bb2, otherwise: bb2]; // scope 0 at $DIR/enums.rs:+4:13: +8:14 | |
10 | } | |
11 | ||
12 | bb1: { | |
13 | _0 = const false; // scope 0 at $DIR/enums.rs:+12:13: +12:24 | |
14 | return; // scope 0 at $DIR/enums.rs:+13:13: +13:21 | |
15 | } | |
16 | ||
17 | bb2: { | |
18 | _0 = const true; // scope 0 at $DIR/enums.rs:+17:13: +17:23 | |
19 | return; // scope 0 at $DIR/enums.rs:+18:13: +18:21 | |
20 | } | |
21 | } |