Skip to content

Commit 261c023

Browse files
rename constants in mir dump test
1 parent afccc44 commit 261c023

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// EMIT_MIR issue_110508.{impl#0}-BAR1.built.after.mir
2-
// EMIT_MIR issue_110508.{impl#0}-BAR2.built.after.mir
1+
// EMIT_MIR issue_110508.{impl#0}-BAR.built.after.mir
2+
// EMIT_MIR issue_110508.{impl#0}-SELF_BAR.built.after.mir
33

44
enum Foo {
55
Bar(()),
66
}
77

88
impl Foo {
9-
const BAR1: Foo = Foo::Bar(());
10-
const BAR2: Foo = Self::Bar(());
9+
const BAR: Foo = Foo::Bar(());
10+
const SELF_BAR: Foo = Self::Bar(());
1111
}
1212

1313
fn main() {}

tests/mir-opt/building/issue_110508.{impl#0}-BAR1.built.after.mir renamed to tests/mir-opt/building/issue_110508.{impl#0}-BAR.built.after.mir

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR1` after built
1+
// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR` after built
22

3-
const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR1: Foo = {
3+
const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR: Foo = {
44
let mut _0: Foo;
55
let mut _1: ();
66

tests/mir-opt/building/issue_110508.{impl#0}-BAR2.built.after.mir renamed to tests/mir-opt/building/issue_110508.{impl#0}-SELF_BAR.built.after.mir

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR2` after built
1+
// MIR for `<impl at $DIR/issue_110508.rs:8:1: 8:9>::SELF_BAR` after built
22

3-
const <impl at $DIR/issue_110508.rs:8:1: 8:9>::BAR2: Foo = {
3+
const <impl at $DIR/issue_110508.rs:8:1: 8:9>::SELF_BAR: Foo = {
44
let mut _0: Foo;
55
let mut _1: ();
66

0 commit comments

Comments
 (0)