Changed simplify_match output query because it had become outdated

This commit is contained in:
Félix Fischer 2020-04-27 19:05:44 -04:00
parent e2ab2758f2
commit 05d7a60ff8
2 changed files with 19 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#[inline(never)]
fn noop() {}
// EMIT_MIR rustc.main.SimplifyBranches-after-copy-prop.diff
// EMIT_MIR rustc.main.ConstProp.diff
fn main() {
match { let x = false; x } {
true => noop(),

View File

@ -1,5 +1,5 @@
- // MIR for `main` before SimplifyBranches-after-copy-prop
+ // MIR for `main` after SimplifyBranches-after-copy-prop
- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/simplify_match.rs:5:11: 5:11
@ -19,15 +19,23 @@
// mir::Constant
// + span: $DIR/simplify_match.rs:6:21: 6:26
// + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
_1 = const false; // scope 1 at $DIR/simplify_match.rs:6:28: 6:29
// ty::Const
// + ty: bool
// + val: Value(Scalar(0x00))
// mir::Constant
// + span: $DIR/simplify_match.rs:6:28: 6:29
// + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
- _1 = _2; // scope 1 at $DIR/simplify_match.rs:6:28: 6:29
+ _1 = const false; // scope 1 at $DIR/simplify_match.rs:6:28: 6:29
+ // ty::Const
+ // + ty: bool
+ // + val: Value(Scalar(0x00))
+ // mir::Constant
+ // + span: $DIR/simplify_match.rs:6:28: 6:29
+ // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
StorageDead(_2); // scope 0 at $DIR/simplify_match.rs:6:30: 6:31
goto -> bb1; // scope 0 at $DIR/simplify_match.rs:7:9: 7:13
- switchInt(_1) -> [false: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:7:9: 7:13
+ switchInt(const false) -> [false: bb1, otherwise: bb2]; // scope 0 at $DIR/simplify_match.rs:7:9: 7:13
+ // ty::Const
+ // + ty: bool
+ // + val: Value(Scalar(0x00))
+ // mir::Constant
+ // + span: $DIR/simplify_match.rs:7:9: 7:13
+ // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
}
bb1: {