diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-17 15:39:35 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-08-11 17:09:15 +0200 |
| commit | 307d0d8f51e65d83274ff61072e15401ab852496 (patch) | |
| tree | c30029208b35527c1621d36aec2c16b38215126c /src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff | |
| parent | 441fd2255763c2aeea616aeac61b2c795a4c5330 (diff) | |
| download | rust-307d0d8f51e65d83274ff61072e15401ab852496.tar.gz rust-307d0d8f51e65d83274ff61072e15401ab852496.zip | |
move Deaggregate pass to post_borrowck_cleanup
Diffstat (limited to 'src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff')
| -rw-r--r-- | src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff b/src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff index 98e9825c1c4..b54fc41d0b4 100644 --- a/src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff +++ b/src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff @@ -16,17 +16,13 @@ bb0: { StorageLive(_1); // scope 0 at $DIR/const_prop_miscompile.rs:5:9: 5:14 -- _1 = (const 1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:5:17: 5:21 -+ _1 = const (1_i32,); // scope 0 at $DIR/const_prop_miscompile.rs:5:17: 5:21 + (_1.0: i32) = const 1_i32; // scope 0 at $DIR/const_prop_miscompile.rs:5:17: 5:21 // ty::Const -- // + ty: i32 -+ // + ty: (i32,) + // + ty: i32 // + val: Value(Scalar(0x00000001)) // mir::Constant -- // + span: $DIR/const_prop_miscompile.rs:5:18: 5:19 -- // + literal: Const { ty: i32, val: Value(Scalar(0x00000001)) } -+ // + span: $DIR/const_prop_miscompile.rs:5:17: 5:21 -+ // + literal: Const { ty: (i32,), val: Value(Scalar(0x00000001)) } + // + span: $DIR/const_prop_miscompile.rs:5:18: 5:19 + // + literal: Const { ty: i32, val: Value(Scalar(0x00000001)) } StorageLive(_2); // scope 1 at $DIR/const_prop_miscompile.rs:6:6: 6:14 _2 = &mut (_1.0: i32); // scope 1 at $DIR/const_prop_miscompile.rs:6:6: 6:14 (*_2) = const 5_i32; // scope 1 at $DIR/const_prop_miscompile.rs:6:5: 6:18 |
