diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-04-17 08:39:58 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-04-17 12:02:36 -0700 |
| commit | 58f8cb343d384b52ade37235aec40f1f0fec1df4 (patch) | |
| tree | fc8bcfdb11db0b0ba220806f80c41eb38c2ca61c | |
| parent | 2b5ad256f5e934a16cd3bf23624ec3ba69b6fa2f (diff) | |
| download | rust-58f8cb343d384b52ade37235aec40f1f0fec1df4.tar.gz rust-58f8cb343d384b52ade37235aec40f1f0fec1df4.zip | |
change printout to be what users will expect
| -rw-r--r-- | src/rustc/util/ppaux.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rustc/util/ppaux.rs b/src/rustc/util/ppaux.rs index 4050f8ced92..6e5f19b1c60 100644 --- a/src/rustc/util/ppaux.rs +++ b/src/rustc/util/ppaux.rs @@ -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()) } |
