@@ -168,7 +168,7 @@ impl Clean<Type> for (ty::TraitRef<'_>, &[TypeBinding]) {
168
168
169
169
debug ! ( "ty::TraitRef\n subst: {:?}\n " , trait_ref. substs) ;
170
170
171
- ResolvedPath { path, did : trait_ref. def_id , is_generic : false }
171
+ ResolvedPath { path, did : trait_ref. def_id }
172
172
}
173
173
}
174
174
@@ -1442,12 +1442,12 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
1442
1442
} ;
1443
1443
inline:: record_extern_fqn ( cx, did, kind) ;
1444
1444
let path = external_path ( cx, did, false , vec ! [ ] , substs) ;
1445
- ResolvedPath { path, did, is_generic : false }
1445
+ ResolvedPath { path, did }
1446
1446
}
1447
1447
ty:: Foreign ( did) => {
1448
1448
inline:: record_extern_fqn ( cx, did, ItemType :: ForeignType ) ;
1449
1449
let path = external_path ( cx, did, false , vec ! [ ] , InternalSubsts :: empty ( ) ) ;
1450
- ResolvedPath { path, did, is_generic : false }
1450
+ ResolvedPath { path, did }
1451
1451
}
1452
1452
ty:: Dynamic ( ref obj, ref reg) => {
1453
1453
// HACK: pick the first `did` as the `did` of the trait object. Someone
@@ -1473,7 +1473,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
1473
1473
let path = external_path ( cx, did, false , vec ! [ ] , empty) ;
1474
1474
inline:: record_extern_fqn ( cx, did, ItemType :: Trait ) ;
1475
1475
let bound = PolyTrait {
1476
- trait_ : ResolvedPath { path, did, is_generic : false } ,
1476
+ trait_ : ResolvedPath { path, did } ,
1477
1477
generic_params : Vec :: new ( ) ,
1478
1478
} ;
1479
1479
bounds. push ( bound) ;
@@ -1490,10 +1490,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
1490
1490
let path = external_path ( cx, did, false , bindings, substs) ;
1491
1491
bounds. insert (
1492
1492
0 ,
1493
- PolyTrait {
1494
- trait_ : ResolvedPath { path, did, is_generic : false } ,
1495
- generic_params : Vec :: new ( ) ,
1496
- } ,
1493
+ PolyTrait { trait_ : ResolvedPath { path, did } , generic_params : Vec :: new ( ) } ,
1497
1494
) ;
1498
1495
1499
1496
DynTrait ( bounds, lifetime)
0 commit comments