summaryrefslogtreecommitdiff
path: root/tests/mir-opt/const_prop/transmute.valid_char.ConstProp.diff
blob: eac33b730034864ee0bac7a4f0204e71d76cfa0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- // MIR for `valid_char` before ConstProp
+ // MIR for `valid_char` after ConstProp
  
  fn valid_char() -> char {
      let mut _0: char;                    // return place in scope 0 at $DIR/transmute.rs:+0:24: +0:28
      scope 1 {
      }
  
      bb0: {
-         _0 = const 82_u32 as char (Transmute); // scope 1 at $DIR/transmute.rs:+1:14: +1:33
+         _0 = const 'R';                  // scope 1 at $DIR/transmute.rs:+1:14: +1:33
          return;                          // scope 0 at $DIR/transmute.rs:+2:2: +2:2
      }
  }