diff options
| author | Scott Olson <scott@solson.me> | 2016-01-02 07:10:25 -0600 |
|---|---|---|
| committer | Scott Olson <scott@solson.me> | 2016-01-04 16:11:33 -0600 |
| commit | 080994a189c7b3680e822d3f6ddf448c152e6374 (patch) | |
| tree | 23e45aae26ddd5d512f15c5ef24a9f22a709c280 | |
| parent | c9a7171e10f62ba01d263a57b4242beb8d4832dd (diff) | |
| download | rust-080994a189c7b3680e822d3f6ddf448c152e6374.tar.gz rust-080994a189c7b3680e822d3f6ddf448c152e6374.zip | |
Add 'mut' to MIR temp variable debug output.
| -rw-r--r-- | src/librustc_mir/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/pretty.rs b/src/librustc_mir/pretty.rs index 1251154891b..163559f2792 100644 --- a/src/librustc_mir/pretty.rs +++ b/src/librustc_mir/pretty.rs @@ -78,7 +78,7 @@ fn write_mir_intro<W: Write>(mir: &Mir, w: &mut W) -> io::Result<()> { // Compiler-introduced temporary types. for (i, temp) in mir.temp_decls.iter().enumerate() { - try!(writeln!(w, "{}let {:?}: {};", INDENT, Lvalue::Temp(i as u32), temp.ty)); + try!(writeln!(w, "{}let mut {:?}: {};", INDENT, Lvalue::Temp(i as u32), temp.ty)); } Ok(()) |
