Skip to content

Commit 9071ac6

Browse files
committed
re-add debug version
1 parent 7a9af09 commit 9071ac6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libsyntax/parse/token.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ pub fn gensym_ident(str : &str) -> ast::Ident {
546546
// create a fresh name that maps to the same string as the old one.
547547
pub fn fresh_name(src : &ast::Ident) -> Name {
548548
gensym(ident_to_str(src))
549+
// following: debug version. Could work in final except that it's incompatible with
550+
// good error messages and uses of struct names in ambiguous could-be-binding
551+
// locations.
552+
/*let num = rand::rng().gen_uint_range(0,0xffff);
553+
gensym(fmt!("%s_%u",ident_to_str(src),num))*/
549554
}
550555

551556
// create a fresh mark.

0 commit comments

Comments
 (0)