@@ -1849,7 +1849,7 @@ fn get_real_types(
1849
1849
cx : & DocContext < ' _ > ,
1850
1850
recurse : i32 ,
1851
1851
) -> FxHashSet < Type > {
1852
- let arg_s = arg. to_string ( ) ;
1852
+ let arg_s = arg. print ( ) . to_string ( ) ;
1853
1853
let mut res = FxHashSet :: default ( ) ;
1854
1854
if recurse >= 10 { // FIXME: remove this whole recurse thing when the recursion bug is fixed
1855
1855
return res;
@@ -3573,16 +3573,6 @@ pub enum GenericArg {
3573
3573
Const ( Constant ) ,
3574
3574
}
3575
3575
3576
- impl fmt:: Display for GenericArg {
3577
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3578
- match self {
3579
- GenericArg :: Lifetime ( lt) => lt. fmt ( f) ,
3580
- GenericArg :: Type ( ty) => ty. fmt ( f) ,
3581
- GenericArg :: Const ( ct) => ct. fmt ( f) ,
3582
- }
3583
- }
3584
- }
3585
-
3586
3576
#[ derive( Clone , PartialEq , Eq , Debug , Hash ) ]
3587
3577
pub enum GenericArgs {
3588
3578
AngleBracketed {
@@ -4274,7 +4264,7 @@ fn resolve_type(cx: &DocContext<'_>,
4274
4264
return Generic ( kw:: SelfUpper . to_string ( ) ) ;
4275
4265
}
4276
4266
Res :: Def ( DefKind :: TyParam , _) if path. segments . len ( ) == 1 => {
4277
- return Generic ( format ! ( "{:#}" , path) ) ;
4267
+ return Generic ( format ! ( "{:#}" , path. print ( ) ) ) ;
4278
4268
}
4279
4269
Res :: SelfTy ( ..)
4280
4270
| Res :: Def ( DefKind :: TyParam , _)
0 commit comments