]> git.lizzy.rs Git - rust.git/commitdiff
Fix MIR text output for terminators since they were made optional.
authorScott Olson <scott@solson.me>
Thu, 7 Jan 2016 21:16:07 +0000 (15:16 -0600)
committerScott Olson <scott@solson.me>
Thu, 7 Jan 2016 21:16:07 +0000 (15:16 -0600)
src/librustc_mir/pretty.rs

index 163559f279281ac2caa67b07b366552ecc1b5c85..ea4036a4d375f6ec68435bf707ca8322fd5d68f7 100644 (file)
@@ -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)
 }