Skip to content

Commit f2dd97c

Browse files
authored
Rollup merge of #60741 - shiatsumat:patch-let-mut-write-graph-label, r=varkor
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).
2 parents 5490cc1 + a145b14 commit f2dd97c

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)