]>
Commit | Line | Data |
---|---|---|
532ac7d7 XL |
1 | fn main() { |
2 | match { let x = false; x } { | |
3 | true => println!("hello world!"), | |
4 | false => {}, | |
5 | } | |
6 | } | |
7 | ||
8 | // END RUST SOURCE | |
9 | // START rustc.main.SimplifyBranches-after-copy-prop.before.mir | |
10 | // bb0: { | |
11 | // ... | |
dc9dc135 | 12 | // switchInt(const false) -> [false: bb1, otherwise: bb2]; |
532ac7d7 XL |
13 | // } |
14 | // bb1: { | |
15 | // END rustc.main.SimplifyBranches-after-copy-prop.before.mir | |
16 | // START rustc.main.SimplifyBranches-after-copy-prop.after.mir | |
17 | // bb0: { | |
18 | // ... | |
dc9dc135 | 19 | // goto -> bb1; |
532ac7d7 XL |
20 | // } |
21 | // bb1: { | |
22 | // END rustc.main.SimplifyBranches-after-copy-prop.after.mir |