about summary refs log tree commit diff
path: root/src/test/mir-opt/byte_slice
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-01 12:10:06 +0200
committerRalf Jung <post@ralfj.de>2020-05-12 13:30:50 +0200
commit3fccdb3ded1aea60b699cc3d11dcd886f70fbb0e (patch)
tree8a7ecf1387a5ff4b83bd54153a311872d5895d49 /src/test/mir-opt/byte_slice
parent09c817eeb29e764cfc12d0a8d94841e3ffe34023 (diff)
Pointer printing: do not print 0 offset
Diffstat (limited to 'src/test/mir-opt/byte_slice')
-rw-r--r--src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir b/src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir
index b8ecaf787fe..88cb09ac15a 100644
--- a/src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir
+++ b/src/test/mir-opt/byte_slice/rustc.main.SimplifyCfg-elaborate-drops.after.mir
@@ -16,10 +16,10 @@ fn main() -> () {
         _1 = const b"foo";               // scope 0 at $DIR/byte_slice.rs:5:13: 5:19
                                          // ty::Const
                                          // + ty: &[u8; 3]
-                                         // + val: Value(Scalar(alloc0+0x0))
+                                         // + val: Value(Scalar(alloc0))
                                          // mir::Constant
                                          // + span: $DIR/byte_slice.rs:5:13: 5:19
-                                         // + literal: Const { ty: &[u8; 3], val: Value(Scalar(alloc0+0x0)) }
+                                         // + literal: Const { ty: &[u8; 3], val: Value(Scalar(alloc0)) }
         StorageLive(_2);                 // scope 1 at $DIR/byte_slice.rs:6:9: 6:10
         _2 = [const 5u8, const 120u8];   // scope 1 at $DIR/byte_slice.rs:6:13: 6:24
                                          // ty::Const