We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9af09 commit 9071ac6Copy full SHA for 9071ac6
src/libsyntax/parse/token.rs
@@ -546,6 +546,11 @@ pub fn gensym_ident(str : &str) -> ast::Ident {
546
// create a fresh name that maps to the same string as the old one.
547
pub fn fresh_name(src : &ast::Ident) -> Name {
548
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))*/
554
}
555
556
// create a fresh mark.
0 commit comments