Skip to content

Commit 080994a

Browse files
committed
Add 'mut' to MIR temp variable debug output.
1 parent c9a7171 commit 080994a

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
@@ -78,7 +78,7 @@ fn write_mir_intro<W: Write>(mir: &Mir, w: &mut W) -> io::Result<()> {
7878

7979
// Compiler-introduced temporary types.
8080
for (i, temp) in mir.temp_decls.iter().enumerate() {
81-
try!(writeln!(w, "{}let {:?}: {};", INDENT, Lvalue::Temp(i as u32), temp.ty));
81+
try!(writeln!(w, "{}let mut {:?}: {};", INDENT, Lvalue::Temp(i as u32), temp.ty));
8282
}
8383

8484
Ok(())

0 commit comments

Comments
 (0)