fork/rust

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

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

master
623 B26 linesraw
1- // MIR for `mutate_discriminant` before DataflowConstProp
2+ // MIR for `mutate_discriminant` after DataflowConstProp
3  
4  fn mutate_discriminant() -> u8 {
5      let mut _0: u8;
6      let mut _1: std::option::Option<NonZeroUsize>;
7      let mut _2: isize;
8  
9      bb0: {
10          discriminant(_1) = 1;
11          (((_1 as variant#1).0: NonZeroUsize).0: usize) = const 0_usize;
12          _2 = discriminant(_1);
13          switchInt(_2) -> [0: bb1, otherwise: bb2];
14      }
15  
16      bb1: {
17          _0 = const 1_u8;
18          return;
19      }
20  
21      bb2: {
22          _0 = const 2_u8;
23          unreachable;
24      }
25  }
26