@@ -387,7 +387,7 @@ impl<'tcx> Clean<Type> for ty::ProjectionTy<'tcx> {
387387 name : cx. tcx . associated_item ( self . item_def_id ) . ident . name ,
388388 self_def_id : self_type. def_id ( ) ,
389389 self_type : box self_type,
390- trait_ : box trait_ ,
390+ trait_,
391391 }
392392 }
393393}
@@ -1277,16 +1277,16 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
12771277 let segments = if p. is_global ( ) { & p. segments [ 1 ..] } else { & p. segments } ;
12781278 let trait_segments = & segments[ ..segments. len ( ) - 1 ] ;
12791279 let trait_def = cx. tcx . associated_item ( p. res . def_id ( ) ) . container . id ( ) ;
1280- let trait_path = self :: Path {
1280+ let trait_ = self :: Path {
12811281 res : Res :: Def ( DefKind :: Trait , trait_def) ,
12821282 segments : trait_segments. clean ( cx) ,
12831283 } ;
1284- register_res ( cx, trait_path . res ) ;
1284+ register_res ( cx, trait_ . res ) ;
12851285 Type :: QPath {
12861286 name : p. segments . last ( ) . expect ( "segments were empty" ) . ident . name ,
12871287 self_def_id : Some ( DefId :: local ( qself. hir_id . owner . local_def_index ) ) ,
12881288 self_type : box qself. clean ( cx) ,
1289- trait_ : box trait_path ,
1289+ trait_,
12901290 }
12911291 }
12921292 hir:: QPath :: TypeRelative ( ref qself, ref segment) => {
@@ -1297,13 +1297,13 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
12971297 ty:: Error ( _) => return Type :: Infer ,
12981298 _ => bug ! ( "clean: expected associated type, found `{:?}`" , ty) ,
12991299 } ;
1300- let trait_path = hir:: Path { span, res, segments : & [ ] } . clean ( cx) ;
1301- register_res ( cx, trait_path . res ) ;
1300+ let trait_ = hir:: Path { span, res, segments : & [ ] } . clean ( cx) ;
1301+ register_res ( cx, trait_ . res ) ;
13021302 Type :: QPath {
13031303 name : segment. ident . name ,
13041304 self_def_id : res. opt_def_id ( ) ,
13051305 self_type : box qself. clean ( cx) ,
1306- trait_ : box trait_path ,
1306+ trait_,
13071307 }
13081308 }
13091309 hir:: QPath :: LangItem ( ..) => bug ! ( "clean: requiring documentation of lang item" ) ,
0 commit comments