diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-01 12:10:06 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-05-12 13:30:50 +0200 |
| commit | 3fccdb3ded1aea60b699cc3d11dcd886f70fbb0e (patch) | |
| tree | 8a7ecf1387a5ff4b83bd54153a311872d5895d49 /src/test/mir-opt/byte_slice | |
| parent | 09c817eeb29e764cfc12d0a8d94841e3ffe34023 (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.mir | 4 |
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 |
