diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-16 02:37:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-16 02:37:28 +0200 |
| commit | 941dfb954526432d2e55dfd1fdc9d2d8e933c89a (patch) | |
| tree | 63cca56d85a374171a51ccaf65d9d7a95a4b22d9 /src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff | |
| parent | 89866ce2c7e860c9c3acf5820c8839d2c4926c0a (diff) | |
| parent | e84b379351577cae8cc3e89bf66c71bcabf547d7 (diff) | |
| download | rust-941dfb954526432d2e55dfd1fdc9d2d8e933c89a.tar.gz rust-941dfb954526432d2e55dfd1fdc9d2d8e933c89a.zip | |
Rollup merge of #72220 - wesleywiser:const_prop_eval_consts, r=oli-obk
[const-prop] Don't replace Rvalues that are already constants This cleans up a few mir-opt tests which have slight changes to spans for `consts` as a result of replacing them with new Rvalues.
Diffstat (limited to 'src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff')
| -rw-r--r-- | src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff b/src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff index c6c5b0cf726..187c1745435 100644 --- a/src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff +++ b/src/test/mir-opt/const_prop/mutable_variable/rustc.main.ConstProp.diff @@ -26,8 +26,7 @@ // + ty: i32 // + val: Value(Scalar(0x00000063)) // mir::Constant -- // + span: $DIR/mutable_variable.rs:6:9: 6:11 -+ // + span: $DIR/mutable_variable.rs:6:5: 6:11 + // + span: $DIR/mutable_variable.rs:6:9: 6:11 // + literal: Const { ty: i32, val: Value(Scalar(0x00000063)) } StorageLive(_2); // scope 1 at $DIR/mutable_variable.rs:7:9: 7:10 - _2 = _1; // scope 1 at $DIR/mutable_variable.rs:7:13: 7:14 |
