Skip to content

Commit 8e29367

Browse files
committed
Fix MIR text output for terminators since they were made optional.
1 parent 25d1f4b commit 8e29367

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)