re-add debug version

This commit is contained in:
John Clements 2013-06-07 14:53:53 -07:00
parent 7a9af098f0
commit 9071ac60b6

View File

@ -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.