Skip to content

Commit 0e64333

Browse files
committed
MIR-dump: print return type from local_decls for _0
We've kind of got the same information twice in the MIR, between the return-type field and the local-decls. Seems un-great.
1 parent e897990 commit 0e64333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/util/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ pub fn write_mir_intro<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
350350
let indented_retptr = format!("{}let mut {:?}: {};",
351351
INDENT,
352352
RETURN_POINTER,
353-
mir.return_ty);
353+
mir.local_decls[RETURN_POINTER].ty);
354354
writeln!(w, "{0:1$} // return pointer",
355355
indented_retptr,
356356
ALIGN)?;

0 commit comments

Comments
 (0)