Pretty-print ReturnPointer as 'return' in MIR.

This commit is contained in:
Scott Olson 2016-01-01 21:56:29 -06:00
parent 19a50e4f2a
commit c9a7171e10

View File

@ -554,7 +554,7 @@ impl<'tcx> Debug for Lvalue<'tcx> {
Static(def_id) =>
write!(fmt, "{}", ty::tls::with(|tcx| tcx.item_path_str(def_id))),
ReturnPointer =>
write!(fmt, "ReturnPointer"),
write!(fmt, "return"),
Projection(ref data) =>
match data.elem {
ProjectionElem::Downcast(ref adt_def, index) =>