Skip to content

Commit

Permalink
Pretty-print ReturnPointer as 'return' in MIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
solson committed Jan 4, 2016
1 parent 19a50e4 commit c9a7171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/repr.rs
Expand Up @@ -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) =>
Expand Down

0 comments on commit c9a7171

Please sign in to comment.