Skip to content

Commit c9a7171

Browse files
committed
Pretty-print ReturnPointer as 'return' in MIR.
1 parent 19a50e4 commit c9a7171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/repr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ impl<'tcx> Debug for Lvalue<'tcx> {
554554
Static(def_id) =>
555555
write!(fmt, "{}", ty::tls::with(|tcx| tcx.item_path_str(def_id))),
556556
ReturnPointer =>
557-
write!(fmt, "ReturnPointer"),
557+
write!(fmt, "return"),
558558
Projection(ref data) =>
559559
match data.elem {
560560
ProjectionElem::Downcast(ref adt_def, index) =>

0 commit comments

Comments
 (0)