]> git.lizzy.rs Git - rust.git/blobdiff - src/test/mir-opt/const_prop/cast/rustc.main.ConstProp.diff
Fix wrong argument in autoderef process
[rust.git] / src / test / mir-opt / const_prop / cast / rustc.main.ConstProp.diff
index ee6a0e87b12fcb21821d871c4f6973201db82b48..ca0a309b1b5df4b6b6660ad9b4a0eb2fd4627132 100644 (file)
 +                                          // mir::Constant
 +                                          // + span: $DIR/cast.rs:6:13: 6:24
 +                                          // + literal: Const { ty: u8, val: Value(Scalar(0x2a)) }
-          _0 = ();                         // bb0[4]: scope 0 at $DIR/cast.rs:3:11: 7:2
+          _0 = const ();                   // bb0[4]: scope 0 at $DIR/cast.rs:3:11: 7:2
+                                           // ty::Const
+                                           // + ty: ()
+                                           // + val: Value(Scalar(<ZST>))
+                                           // mir::Constant
+                                           // + span: $DIR/cast.rs:3:11: 7:2
+                                           // + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
           StorageDead(_2);                 // bb0[5]: scope 1 at $DIR/cast.rs:7:1: 7:2
           StorageDead(_1);                 // bb0[6]: scope 0 at $DIR/cast.rs:7:1: 7:2
           return;                          // bb0[7]: scope 0 at $DIR/cast.rs:7:2: 7:2