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).
This commit is contained in:
commit
f2dd97cc34
@ -167,7 +167,7 @@ fn write_graph_label<'a, 'gcx, 'tcx, W: Write>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
|
||||
write!(w, r#"{:?}: {}; // {}<br align="left"/>"#,
|
||||
Place::Base(PlaceBase::Local(local)), escape(&decl.ty), name)?;
|
||||
} else {
|
||||
write!(w, r#"let mut {:?}: {};<br align="left"/>"#,
|
||||
write!(w, r#"{:?}: {};<br align="left"/>"#,
|
||||
Place::Base(PlaceBase::Local(local)), escape(&decl.ty))?;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user