File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
309
309
is_auto : is_auto. clean ( cx) ,
310
310
} ) )
311
311
}
312
+ ItemKind :: TraitAlias ( ref generics, bounds) => NotInlined ( TraitAliasItem ( TraitAlias {
313
+ generics : generics. clean ( cx) ,
314
+ bounds : bounds. clean ( cx) ,
315
+ } ) ) ,
312
316
_ => unimplemented ! ( ) ,
313
317
} ;
314
318
@@ -1142,20 +1146,6 @@ impl Clean<FnRetTy> for hir::FnRetTy<'_> {
1142
1146
}
1143
1147
}
1144
1148
1145
- impl Clean < Item > for doctree:: TraitAlias < ' _ > {
1146
- fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
1147
- Item :: from_hir_id_and_parts (
1148
- self . id ,
1149
- Some ( self . name ) ,
1150
- TraitAliasItem ( TraitAlias {
1151
- generics : self . generics . clean ( cx) ,
1152
- bounds : self . bounds . clean ( cx) ,
1153
- } ) ,
1154
- cx,
1155
- )
1156
- }
1157
- }
1158
-
1159
1149
impl Clean < bool > for hir:: IsAuto {
1160
1150
fn clean ( & self , _: & DocContext < ' _ > ) -> bool {
1161
1151
match * self {
Original file line number Diff line number Diff line change @@ -30,13 +30,6 @@ crate struct Static<'hir> {
30
30
crate span : Span ,
31
31
}
32
32
33
- crate struct TraitAlias < ' hir > {
34
- crate name : Symbol ,
35
- crate generics : & ' hir hir:: Generics < ' hir > ,
36
- crate bounds : & ' hir [ hir:: GenericBound < ' hir > ] ,
37
- crate id : hir:: HirId ,
38
- }
39
-
40
33
#[ derive( Debug ) ]
41
34
crate struct Impl < ' hir > {
42
35
crate unsafety : hir:: Unsafety ,
You can’t perform that action at this time.
0 commit comments