fork/rust

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

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

master
784 B38 linesraw
1- // MIR for `no_downcast` before EarlyOtherwiseBranch
2+ // MIR for `no_downcast` after EarlyOtherwiseBranch
3  
4  fn no_downcast(_1: &E<'_>) -> u32 {
5      debug e => _1;
6      let mut _0: u32;
7      let mut _2: isize;
8      let mut _3: isize;
9      let mut _4: &E<'_>;
10      scope 1 {
11      }
12  
13      bb0: {
14          _3 = discriminant((*_1));
15          switchInt(move _3) -> [1: bb1, otherwise: bb3];
16      }
17  
18      bb1: {
19          _4 = deref_copy (((*_1) as Some).0: &E<'_>);
20          _2 = discriminant((*_4));
21          switchInt(move _2) -> [1: bb2, otherwise: bb3];
22      }
23  
24      bb2: {
25          _0 = const 1_u32;
26          goto -> bb4;
27      }
28  
29      bb3: {
30          _0 = const 2_u32;
31          goto -> bb4;
32      }
33  
34      bb4: {
35          return;
36      }
37  }
38