Skip to content

Commit 4e1249d

Browse files
committed
avoid printing 'static
1 parent 95b0f22 commit 4e1249d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc/mir/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1209,10 +1209,13 @@ impl<'tcx> Debug for Rvalue<'tcx> {
12091209
};
12101210

12111211
// When printing regions, add trailing space if necessary.
1212-
let region = {
1212+
let region = if ppaux::verbose() || ppaux::identify_regions() {
12131213
let mut region = format!("{}", region);
12141214
if region.len() > 0 { region.push(' '); }
12151215
region
1216+
} else {
1217+
// Do not even print 'static
1218+
"".to_owned()
12161219
};
12171220
write!(fmt, "&{}{}{:?}", region, kind_str, lv)
12181221
}

0 commit comments

Comments
 (0)