Skip to content

Commit

Permalink
Rollup merge of rust-lang#30771 - tsion:mir-text-terminator-fix, r=eddyb
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nagisa committed Jan 9, 2016
2 parents 9fc43d1 + 8e29367 commit c826e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn write_basic_block<W: Write>(block: BasicBlock, mir: &Mir, w: &mut W) -> io::R
}

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

writeln!(w, "{}}}", INDENT)
}
Expand Down

0 comments on commit c826e13

Please sign in to comment.