File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -1837,19 +1837,6 @@ impl Clean<VariantStruct> for rustc_hir::VariantData<'_> {
1837
1837
}
1838
1838
}
1839
1839
1840
- impl Clean < Item > for doctree:: Variant < ' _ > {
1841
- fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
1842
- let what_rustc_thinks = Item :: from_hir_id_and_parts (
1843
- self . id ,
1844
- Some ( self . name ) ,
1845
- VariantItem ( Variant { kind : self . def . clean ( cx) } ) ,
1846
- cx,
1847
- ) ;
1848
- // don't show `pub` for variants, which are always public
1849
- Item { visibility : Inherited , ..what_rustc_thinks }
1850
- }
1851
- }
1852
-
1853
1840
impl Clean < Item > for ty:: VariantDef {
1854
1841
fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
1855
1842
let kind = match self . ctor_kind {
Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ crate enum StructType {
48
48
Unit ,
49
49
}
50
50
51
- crate struct Variant < ' hir > {
52
- crate name : Symbol ,
53
- crate id : hir:: HirId ,
54
- crate def : & ' hir hir:: VariantData < ' hir > ,
55
- }
56
-
57
51
#[ derive( Debug ) ]
58
52
crate struct Import < ' hir > {
59
53
crate name : Symbol ,
You can’t perform that action at this time.
0 commit comments