fork/rust

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

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

master
571 B26 linesraw
1- // MIR for `hello` before ConstProp
2+ // MIR for `hello` after ConstProp
3  
4  fn hello() -> () {
5      let mut _0: ();
6      let mut _1: bool;
7      let mut _2: !;
8  
9      bb0: {
10          StorageLive(_1);
11-         _1 = const _;
12-         switchInt(move _1) -> [0: bb2, otherwise: bb1];
13+         _1 = const false;
14+         switchInt(const false) -> [0: bb2, otherwise: bb1];
15      }
16  
17      bb1: {
18          _2 = begin_panic::<&str>(const "explicit panic") -> unwind unreachable;
19      }
20  
21      bb2: {
22          StorageDead(_1);
23          return;
24      }
25  }
26