@@ -1942,7 +1942,7 @@ impl Clean<Item> for hir::StructField {
1942
1942
}
1943
1943
}
1944
1944
1945
- impl < ' tcx > Clean < Item > for ty:: FieldDefData < ' tcx , ' static > {
1945
+ impl < ' tcx > Clean < Item > for ty:: FieldDef {
1946
1946
fn clean ( & self , cx : & DocContext ) -> Item {
1947
1947
Item {
1948
1948
name : Some ( self . name ) . clean ( cx) ,
@@ -1952,7 +1952,7 @@ impl<'tcx> Clean<Item> for ty::FieldDefData<'tcx, 'static> {
1952
1952
stability : get_stability ( cx, self . did ) ,
1953
1953
deprecation : get_deprecation ( cx, self . did ) ,
1954
1954
def_id : self . did ,
1955
- inner : StructFieldItem ( self . unsubst_ty ( ) . clean ( cx) ) ,
1955
+ inner : StructFieldItem ( cx . tcx . item_type ( self . did ) . clean ( cx) ) ,
1956
1956
}
1957
1957
}
1958
1958
}
@@ -2099,13 +2099,13 @@ impl Clean<Item> for doctree::Variant {
2099
2099
}
2100
2100
}
2101
2101
2102
- impl < ' tcx > Clean < Item > for ty:: VariantDefData < ' tcx , ' static > {
2102
+ impl < ' tcx > Clean < Item > for ty:: VariantDef {
2103
2103
fn clean ( & self , cx : & DocContext ) -> Item {
2104
2104
let kind = match self . ctor_kind {
2105
2105
CtorKind :: Const => VariantKind :: CLike ,
2106
2106
CtorKind :: Fn => {
2107
2107
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 ( )
2109
2109
)
2110
2110
}
2111
2111
CtorKind :: Fictive => {
@@ -2121,7 +2121,7 @@ impl<'tcx> Clean<Item> for ty::VariantDefData<'tcx, 'static> {
2121
2121
def_id : field. did ,
2122
2122
stability : get_stability ( cx, field. did ) ,
2123
2123
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) )
2125
2125
}
2126
2126
} ) . collect ( )
2127
2127
} )
0 commit comments