change printout to be what users will expect

This commit is contained in:
Niko Matsakis 2012-04-17 08:39:58 -07:00
parent 2b5ad256f5
commit 58f8cb343d

View file

@ -49,7 +49,13 @@ fn region_to_str(cx: ctxt, region: region) -> str {
alt region {
re_scope(node_id) { #fmt["&%s", re_scope_id_to_str(cx, node_id)] }
re_bound(br) { bound_region_to_str(cx, br) }
re_free(id, br) { #fmt["{%d} %s", id, bound_region_to_str(cx, br)] }
re_free(id, br) {
// For debugging, this version is sometimes helpful:
// #fmt["{%d} %s", id, bound_region_to_str(cx, br)]
// But this version is what the user expects to see:
bound_region_to_str(cx, br)
}
// These two should not be seen by end-users (very often, anyhow):
re_var(id) { #fmt("&%s", id.to_str()) }