Skip to content

Commit

Permalink
rename constants in mir dump test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmarkmartin committed Jul 5, 2023
1 parent afccc44 commit 261c023
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/mir-opt/building/issue_110508.rs
Original file line number Diff line number Diff line change
@@ -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() {}
Original file line number Diff line number Diff line change
@@ -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: ();

Expand Down
Original file line number Diff line number Diff line change
@@ -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: ();

Expand Down

0 comments on commit 261c023

Please sign in to comment.