change printout to be what users will expect
This commit is contained in:
parent
2b5ad256f5
commit
58f8cb343d
@ -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()) }
|
||||
|
Loading…
Reference in New Issue
Block a user