@@ -1942,7 +1942,7 @@ impl Clean<Item> for hir::StructField {
19421942 }
19431943}
19441944
1945- impl < ' tcx > Clean < Item > for ty:: FieldDefData < ' tcx , ' static > {
1945+ impl < ' tcx > Clean < Item > for ty:: FieldDef {
19461946 fn clean ( & self , cx : & DocContext ) -> Item {
19471947 Item {
19481948 name : Some ( self . name ) . clean ( cx) ,
@@ -1952,7 +1952,7 @@ impl<'tcx> Clean<Item> for ty::FieldDefData<'tcx, 'static> {
19521952 stability : get_stability ( cx, self . did ) ,
19531953 deprecation : get_deprecation ( cx, self . did ) ,
19541954 def_id : self . did ,
1955- inner : StructFieldItem ( self . unsubst_ty ( ) . clean ( cx) ) ,
1955+ inner : StructFieldItem ( cx . tcx . item_type ( self . did ) . clean ( cx) ) ,
19561956 }
19571957 }
19581958}
@@ -2099,13 +2099,13 @@ impl Clean<Item> for doctree::Variant {
20992099 }
21002100}
21012101
2102- impl < ' tcx > Clean < Item > for ty:: VariantDefData < ' tcx , ' static > {
2102+ impl < ' tcx > Clean < Item > for ty:: VariantDef {
21032103 fn clean ( & self , cx : & DocContext ) -> Item {
21042104 let kind = match self . ctor_kind {
21052105 CtorKind :: Const => VariantKind :: CLike ,
21062106 CtorKind :: Fn => {
21072107 VariantKind :: Tuple (
2108- self . fields . iter ( ) . map ( |f| f . unsubst_ty ( ) . clean ( cx) ) . collect ( )
2108+ self . fields . iter ( ) . map ( |f| cx . tcx . item_type ( f . did ) . clean ( cx) ) . collect ( )
21092109 )
21102110 }
21112111 CtorKind :: Fictive => {
@@ -2121,7 +2121,7 @@ impl<'tcx> Clean<Item> for ty::VariantDefData<'tcx, 'static> {
21212121 def_id : field. did ,
21222122 stability : get_stability ( cx, field. did ) ,
21232123 deprecation : get_deprecation ( cx, field. did ) ,
2124- inner : StructFieldItem ( field . unsubst_ty ( ) . clean ( cx) )
2124+ inner : StructFieldItem ( cx . tcx . item_type ( field . did ) . clean ( cx) )
21252125 }
21262126 } ) . collect ( )
21272127 } )
0 commit comments