@@ -17,7 +17,7 @@ use std::fmt::Write;
17
17
use std:: hash:: Hash ;
18
18
use syntax:: ast;
19
19
use syntax:: ext:: hygiene:: Mark ;
20
- use syntax:: symbol:: { Symbol , InternedString } ;
20
+ use syntax:: symbol:: { Symbol , sym , InternedString } ;
21
21
use syntax_pos:: { Span , DUMMY_SP } ;
22
22
use crate :: util:: nodemap:: NodeMap ;
23
23
@@ -584,16 +584,16 @@ impl DefPathData {
584
584
return name
585
585
}
586
586
// 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 ,
594
594
} ;
595
595
596
- Symbol :: intern ( s ) . as_interned_str ( )
596
+ s . as_interned_str ( )
597
597
}
598
598
599
599
pub fn to_string ( & self ) -> String {
0 commit comments