Skip to content

Commit c826e13

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/pretty.rs

Lines changed: 1 addition & 1 deletion
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)