@@ -168,7 +168,7 @@ impl Clean<Type> for (ty::TraitRef<'_>, &[TypeBinding]) {
168168
169169 debug ! ( "ty::TraitRef\n subst: {:?}\n " , trait_ref. substs) ;
170170
171- ResolvedPath { path, did : trait_ref. def_id , is_generic : false }
171+ ResolvedPath { path, did : trait_ref. def_id }
172172 }
173173}
174174
@@ -1442,12 +1442,12 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
14421442 } ;
14431443 inline:: record_extern_fqn ( cx, did, kind) ;
14441444 let path = external_path ( cx, did, false , vec ! [ ] , substs) ;
1445- ResolvedPath { path, did, is_generic : false }
1445+ ResolvedPath { path, did }
14461446 }
14471447 ty:: Foreign ( did) => {
14481448 inline:: record_extern_fqn ( cx, did, ItemType :: ForeignType ) ;
14491449 let path = external_path ( cx, did, false , vec ! [ ] , InternalSubsts :: empty ( ) ) ;
1450- ResolvedPath { path, did, is_generic : false }
1450+ ResolvedPath { path, did }
14511451 }
14521452 ty:: Dynamic ( ref obj, ref reg) => {
14531453 // HACK: pick the first `did` as the `did` of the trait object. Someone
@@ -1473,7 +1473,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
14731473 let path = external_path ( cx, did, false , vec ! [ ] , empty) ;
14741474 inline:: record_extern_fqn ( cx, did, ItemType :: Trait ) ;
14751475 let bound = PolyTrait {
1476- trait_ : ResolvedPath { path, did, is_generic : false } ,
1476+ trait_ : ResolvedPath { path, did } ,
14771477 generic_params : Vec :: new ( ) ,
14781478 } ;
14791479 bounds. push ( bound) ;
@@ -1490,10 +1490,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
14901490 let path = external_path ( cx, did, false , bindings, substs) ;
14911491 bounds. insert (
14921492 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 ( ) } ,
14971494 ) ;
14981495
14991496 DynTrait ( bounds, lifetime)
0 commit comments