Skip to content

Commit 56343cd

Browse files
committed
Add 'mut' to temporary vars in MIR graphviz output.
1 parent 31578f5 commit 56343cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/graphviz.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn write_graph_label<W: Write>(mir: &Mir, w: &mut W) -> io::Result<()> {
117117

118118
// Compiler-introduced temporary types.
119119
for (i, temp) in mir.temp_decls.iter().enumerate() {
120-
try!(write!(w, r#"let {:?}: {};<br align="left"/>"#,
120+
try!(write!(w, r#"let mut {:?}: {};<br align="left"/>"#,
121121
Lvalue::Temp(i as u32), escape(&temp.ty)));
122122
}
123123

0 commit comments

Comments
 (0)