Skip to content

Commit a145b14

Browse files
authored
Remove redundant "let mut" in write_graph_label
Removed the redundant "let mut" in the write_graph_label function (it caused "let mut let mut" for non-user-defined local variables).
1 parent 5f1924c commit a145b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/util/graphviz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ fn write_graph_label<'a, 'gcx, 'tcx, W: Write>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
167167
write!(w, r#"{:?}: {}; // {}<br align="left"/>"#,
168168
Place::Base(PlaceBase::Local(local)), escape(&decl.ty), name)?;
169169
} else {
170-
write!(w, r#"let mut {:?}: {};<br align="left"/>"#,
170+
write!(w, r#"{:?}: {};<br align="left"/>"#,
171171
Place::Base(PlaceBase::Local(local)), escape(&decl.ty))?;
172172
}
173173
}

0 commit comments

Comments
 (0)