File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,10 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
271
271
false ,
272
272
) )
273
273
}
274
+ ItemKind :: OpaqueTy ( ref ty) => NotInlined ( OpaqueTyItem ( OpaqueTy {
275
+ bounds : ty. bounds . clean ( cx) ,
276
+ generics : ty. generics . clean ( cx) ,
277
+ } ) ) ,
274
278
ItemKind :: Union ( ref variant_data, ref generics) => NotInlined ( UnionItem ( Union {
275
279
struct_type : doctree:: struct_type_from_def ( & variant_data) ,
276
280
generics : generics. clean ( cx) ,
@@ -2075,20 +2079,6 @@ impl Clean<String> for Symbol {
2075
2079
}
2076
2080
}
2077
2081
2078
- impl Clean < Item > for doctree:: OpaqueTy < ' _ > {
2079
- fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
2080
- Item :: from_hir_id_and_parts (
2081
- self . id ,
2082
- Some ( self . name ) ,
2083
- OpaqueTyItem ( OpaqueTy {
2084
- bounds : self . opaque_ty . bounds . clean ( cx) ,
2085
- generics : self . opaque_ty . generics . clean ( cx) ,
2086
- } ) ,
2087
- cx,
2088
- )
2089
- }
2090
- }
2091
-
2092
2082
impl Clean < BareFunctionDecl > for hir:: BareFnTy < ' _ > {
2093
2083
fn clean ( & self , cx : & DocContext < ' _ > ) -> BareFunctionDecl {
2094
2084
let ( generic_params, decl) = enter_impl_trait ( cx, || {
Original file line number Diff line number Diff line change @@ -39,12 +39,6 @@ crate struct Variant<'hir> {
39
39
crate def : & ' hir hir:: VariantData < ' hir > ,
40
40
}
41
41
42
- crate struct OpaqueTy < ' hir > {
43
- crate opaque_ty : & ' hir hir:: OpaqueTy < ' hir > ,
44
- crate name : Symbol ,
45
- crate id : hir:: HirId ,
46
- }
47
-
48
42
#[ derive( Debug ) ]
49
43
crate struct Static < ' hir > {
50
44
crate type_ : & ' hir hir:: Ty < ' hir > ,
You can’t perform that action at this time.
0 commit comments