Skip to content

Commit 95b0f22

Browse files
committed
Fix printing regions with -Z verbose
1 parent b80e946 commit 95b0f22

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/librustc/mir/mod.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1208,14 +1208,11 @@ impl<'tcx> Debug for Rvalue<'tcx> {
12081208
BorrowKind::Mut | BorrowKind::Unique => "mut ",
12091209
};
12101210

1211-
// When identifying regions, add trailing space if
1212-
// necessary.
1213-
let region = if ppaux::identify_regions() {
1211+
// When printing regions, add trailing space if necessary.
1212+
let region = {
12141213
let mut region = format!("{}", region);
12151214
if region.len() > 0 { region.push(' '); }
12161215
region
1217-
} else {
1218-
"".to_owned()
12191216
};
12201217
write!(fmt, "&{}{}{:?}", region, kind_str, lv)
12211218
}

0 commit comments

Comments
 (0)