@@ -17,7 +17,7 @@ use std::fmt::Write;
1717use std:: hash:: Hash ;
1818use syntax:: ast;
1919use syntax:: ext:: hygiene:: Mark ;
20- use syntax:: symbol:: { Symbol , InternedString } ;
20+ use syntax:: symbol:: { Symbol , sym , InternedString } ;
2121use syntax_pos:: { Span , DUMMY_SP } ;
2222use crate :: util:: nodemap:: NodeMap ;
2323
@@ -584,16 +584,16 @@ impl DefPathData {
584584 return name
585585 }
586586 // note that this does not show up in user printouts
587- CrateRoot => "{{crate}}" ,
588- Impl => "{{impl}}" ,
589- Misc => "{{misc}}" ,
590- ClosureExpr => "{{closure}}" ,
591- Ctor => "{{constructor}}" ,
592- AnonConst => "{{constant}}" ,
593- ImplTrait => "{{opaque}}" ,
587+ CrateRoot => sym :: double_braced_crate ,
588+ Impl => sym :: double_braced_impl ,
589+ Misc => sym :: double_braced_misc ,
590+ ClosureExpr => sym :: double_braced_closure ,
591+ Ctor => sym :: double_braced_constructor ,
592+ AnonConst => sym :: double_braced_constant ,
593+ ImplTrait => sym :: double_braced_opaque ,
594594 } ;
595595
596- Symbol :: intern ( s ) . as_interned_str ( )
596+ s . as_interned_str ( )
597597 }
598598
599599 pub fn to_string ( & self ) -> String {
0 commit comments