rename constants in mir dump test

This commit is contained in:
Eric Mark Martin 2023-07-05 04:28:45 +00:00
parent afccc44402
commit 261c023123
3 changed files with 8 additions and 8 deletions

View File

@ -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() {}

View File

@ -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: ();

View File

@ -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: ();