diff options
| author | Eric Mark Martin <ericmarkmartin@gmail.com> | 2023-07-05 04:28:45 +0000 |
|---|---|---|
| committer | Eric Mark Martin <ericmarkmartin@gmail.com> | 2023-07-05 04:28:45 +0000 |
| commit | 261c0231232287dec32329ceb67d61249ffc8d5e (patch) | |
| tree | 2d65fcf9f120716870d1a366d88c0fd5875c6a48 /tests | |
| parent | afccc444022f17fea184c65758827f9d5e64922b (diff) | |
| download | rust-261c0231232287dec32329ceb67d61249ffc8d5e.tar.gz rust-261c0231232287dec32329ceb67d61249ffc8d5e.zip | |
rename constants in mir dump test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mir-opt/building/issue_110508.rs | 8 | ||||
| -rw-r--r-- | tests/mir-opt/building/issue_110508.{impl#0}-BAR.built.after.mir (renamed from tests/mir-opt/building/issue_110508.{impl#0}-BAR1.built.after.mir) | 4 | ||||
| -rw-r--r-- | tests/mir-opt/building/issue_110508.{impl#0}-SELF_BAR.built.after.mir (renamed from tests/mir-opt/building/issue_110508.{impl#0}-BAR2.built.after.mir) | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/mir-opt/building/issue_110508.rs b/tests/mir-opt/building/issue_110508.rs index 120b026a70f..bcbb1c29830 100644 --- a/tests/mir-opt/building/issue_110508.rs +++ b/tests/mir-opt/building/issue_110508.rs @@ -1,13 +1,13 @@ -// EMIT_MIR issue_110508.{impl#0}-BAR1.built.after.mir -// EMIT_MIR issue_110508.{impl#0}-BAR2.built.after.mir +// EMIT_MIR issue_110508.{impl#0}-BAR.built.after.mir +// EMIT_MIR issue_110508.{impl#0}-SELF_BAR.built.after.mir enum Foo { Bar(()), } impl Foo { - const BAR1: Foo = Foo::Bar(()); - const BAR2: Foo = Self::Bar(()); + const BAR: Foo = Foo::Bar(()); + const SELF_BAR: Foo = Self::Bar(()); } fn main() {} diff --git a/tests/mir-opt/building/issue_110508.{impl#0}-BAR1.built.after.mir b/tests/mir-opt/building/issue_110508.{impl#0}-BAR.built.after.mir index 6adcdcae762..5fc6d911af3 100644 --- a/tests/mir-opt/building/issue_110508.{impl#0}-BAR1.built.after.mir +++ b/tests/mir-opt/building/issue_110508.{impl#0}-BAR.built.after.mir @@ -1,6 +1,6 @@ -// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR1` after built +// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR` after built -const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR1: Foo = { +const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR: Foo = { let mut _0: Foo; let mut _1: (); diff --git a/tests/mir-opt/building/issue_110508.{impl#0}-BAR2.built.after.mir b/tests/mir-opt/building/issue_110508.{impl#0}-SELF_BAR.built.after.mir index d1bd45fba26..1a892559971 100644 --- a/tests/mir-opt/building/issue_110508.{impl#0}-BAR2.built.after.mir +++ b/tests/mir-opt/building/issue_110508.{impl#0}-SELF_BAR.built.after.mir @@ -1,6 +1,6 @@ -// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR2` after built +// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::SELF_BAR` after built -const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR2: Foo = { +const <impl at $DIR/issue_110508.rs:8:1: 8:9>::SELF_BAR: Foo = { let mut _0: Foo; let mut _1: (); |
