summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-06-07 14:53:53 -0700
committerJohn Clements <clements@racket-lang.org>2013-09-06 13:35:09 -0700
commit9071ac60b621020c08bc74cd15c363a7780a2230 (patch)
tree7ab633b5073684828a2505f1aad02bdb060001cb /src/libsyntax/parse
parent7a9af098f0a01cf0d0f320def7c495d1fa859e62 (diff)
downloadrust-9071ac60b621020c08bc74cd15c363a7780a2230.tar.gz
rust-9071ac60b621020c08bc74cd15c363a7780a2230.zip
re-add debug version
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 6cdde3708a6..132ad95e639 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -546,6 +546,11 @@ pub fn gensym_ident(str : &str) -> ast::Ident {
 // create a fresh name that maps to the same string as the old one.
 pub fn fresh_name(src : &ast::Ident) -> Name {
     gensym(ident_to_str(src))
+    // following: debug version. Could work in final except that it's incompatible with
+    // good error messages and uses of struct names in ambiguous could-be-binding
+    // locations.
+    /*let num = rand::rng().gen_uint_range(0,0xffff);
+    gensym(fmt!("%s_%u",ident_to_str(src),num))*/
 }
 
 // create a fresh mark.