Skip to content

Commit 01c86ea

Browse files
committed
Auto merge of #30771 - tsion:mir-text-terminator-fix, r=eddyb
This just removes the `Some()` that appeared around terminators in MIR text output after #30481 (cc @nagisa). The graphviz is already fixed. r? @eddyb
2 parents 64a8ffe + 8e29367 commit 01c86ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn write_basic_block<W: Write>(block: BasicBlock, mir: &Mir, w: &mut W) -> io::R
3939
}
4040

4141
// Terminator at the bottom.
42-
try!(writeln!(w, "{0}{0}{1:?};", INDENT, data.terminator));
42+
try!(writeln!(w, "{0}{0}{1:?};", INDENT, data.terminator()));
4343

4444
writeln!(w, "{}}}", INDENT)
4545
}

0 commit comments

Comments
 (0)