Skip to content

Commit 58f8cb3

Browse files
committed
change printout to be what users will expect
1 parent 2b5ad25 commit 58f8cb3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/rustc/util/ppaux.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ fn region_to_str(cx: ctxt, region: region) -> str {
4949
alt region {
5050
re_scope(node_id) { #fmt["&%s", re_scope_id_to_str(cx, node_id)] }
5151
re_bound(br) { bound_region_to_str(cx, br) }
52-
re_free(id, br) { #fmt["{%d} %s", id, bound_region_to_str(cx, br)] }
52+
re_free(id, br) {
53+
// For debugging, this version is sometimes helpful:
54+
// #fmt["{%d} %s", id, bound_region_to_str(cx, br)]
55+
56+
// But this version is what the user expects to see:
57+
bound_region_to_str(cx, br)
58+
}
5359

5460
// These two should not be seen by end-users (very often, anyhow):
5561
re_var(id) { #fmt("&%s", id.to_str()) }

0 commit comments

Comments
 (0)