@@ -913,7 +913,7 @@ impl Clean<Item> for doctree::Function<'_> {
913
913
attrs : self . attrs . clean ( cx) ,
914
914
source : self . span . clean ( cx) ,
915
915
visibility : self . vis . clean ( cx) ,
916
- stability : cx. stability ( self . id ) . clean ( cx ) ,
916
+ stability : cx. stability ( self . id ) ,
917
917
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
918
918
def_id : did. to_def_id ( ) ,
919
919
inner : FunctionItem ( Function {
@@ -1022,7 +1022,7 @@ impl Clean<Item> for doctree::Trait<'_> {
1022
1022
source : self . span . clean ( cx) ,
1023
1023
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1024
1024
visibility : self . vis . clean ( cx) ,
1025
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1025
+ stability : cx. stability ( self . id ) ,
1026
1026
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1027
1027
inner : TraitItem ( Trait {
1028
1028
auto : self . is_auto . clean ( cx) ,
@@ -1046,7 +1046,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
1046
1046
source : self . span . clean ( cx) ,
1047
1047
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1048
1048
visibility : self . vis . clean ( cx) ,
1049
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1049
+ stability : cx. stability ( self . id ) ,
1050
1050
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1051
1051
inner : TraitAliasItem ( TraitAlias {
1052
1052
generics : self . generics . clean ( cx) ,
@@ -1831,7 +1831,7 @@ impl Clean<Item> for doctree::Struct<'_> {
1831
1831
source : self . span . clean ( cx) ,
1832
1832
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1833
1833
visibility : self . vis . clean ( cx) ,
1834
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1834
+ stability : cx. stability ( self . id ) ,
1835
1835
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1836
1836
inner : StructItem ( Struct {
1837
1837
struct_type : self . struct_type ,
@@ -1851,7 +1851,7 @@ impl Clean<Item> for doctree::Union<'_> {
1851
1851
source : self . span . clean ( cx) ,
1852
1852
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1853
1853
visibility : self . vis . clean ( cx) ,
1854
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1854
+ stability : cx. stability ( self . id ) ,
1855
1855
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1856
1856
inner : UnionItem ( Union {
1857
1857
struct_type : self . struct_type ,
@@ -1881,7 +1881,7 @@ impl Clean<Item> for doctree::Enum<'_> {
1881
1881
source : self . span . clean ( cx) ,
1882
1882
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1883
1883
visibility : self . vis . clean ( cx) ,
1884
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1884
+ stability : cx. stability ( self . id ) ,
1885
1885
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1886
1886
inner : EnumItem ( Enum {
1887
1887
variants : self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) ,
@@ -1899,7 +1899,7 @@ impl Clean<Item> for doctree::Variant<'_> {
1899
1899
attrs : self . attrs . clean ( cx) ,
1900
1900
source : self . span . clean ( cx) ,
1901
1901
visibility : Inherited ,
1902
- stability : cx. stability ( self . id ) . clean ( cx ) ,
1902
+ stability : cx. stability ( self . id ) ,
1903
1903
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
1904
1904
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1905
1905
inner : VariantItem ( Variant { kind : self . def . clean ( cx) } ) ,
@@ -2048,7 +2048,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
2048
2048
source : self . span . clean ( cx) ,
2049
2049
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2050
2050
visibility : self . vis . clean ( cx) ,
2051
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2051
+ stability : cx. stability ( self . id ) ,
2052
2052
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2053
2053
inner : TypedefItem ( Typedef { type_, generics : self . gen . clean ( cx) , item_type } , false ) ,
2054
2054
}
@@ -2063,7 +2063,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
2063
2063
source : self . span . clean ( cx) ,
2064
2064
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2065
2065
visibility : self . vis . clean ( cx) ,
2066
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2066
+ stability : cx. stability ( self . id ) ,
2067
2067
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2068
2068
inner : OpaqueTyItem ( OpaqueTy {
2069
2069
bounds : self . opaque_ty . bounds . clean ( cx) ,
@@ -2091,7 +2091,7 @@ impl Clean<Item> for doctree::Static<'_> {
2091
2091
source : self . span . clean ( cx) ,
2092
2092
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2093
2093
visibility : self . vis . clean ( cx) ,
2094
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2094
+ stability : cx. stability ( self . id ) ,
2095
2095
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2096
2096
inner : StaticItem ( Static {
2097
2097
type_ : self . type_ . clean ( cx) ,
@@ -2112,7 +2112,7 @@ impl Clean<Item> for doctree::Constant<'_> {
2112
2112
source : self . span . clean ( cx) ,
2113
2113
def_id : def_id. to_def_id ( ) ,
2114
2114
visibility : self . vis . clean ( cx) ,
2115
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2115
+ stability : cx. stability ( self . id ) ,
2116
2116
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2117
2117
inner : ConstantItem ( Constant {
2118
2118
type_ : self . type_ . clean ( cx) ,
@@ -2166,7 +2166,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
2166
2166
source : self . span . clean ( cx) ,
2167
2167
def_id : def_id. to_def_id ( ) ,
2168
2168
visibility : self . vis . clean ( cx) ,
2169
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2169
+ stability : cx. stability ( self . id ) ,
2170
2170
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2171
2171
inner : ImplItem ( Impl {
2172
2172
unsafety : self . unsafety ,
@@ -2348,7 +2348,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
2348
2348
source : self . span . clean ( cx) ,
2349
2349
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2350
2350
visibility : self . vis . clean ( cx) ,
2351
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2351
+ stability : cx. stability ( self . id ) ,
2352
2352
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2353
2353
inner,
2354
2354
}
@@ -2363,7 +2363,7 @@ impl Clean<Item> for doctree::Macro<'_> {
2363
2363
attrs : self . attrs . clean ( cx) ,
2364
2364
source : self . span . clean ( cx) ,
2365
2365
visibility : Public ,
2366
- stability : cx. stability ( self . hid ) . clean ( cx ) ,
2366
+ stability : cx. stability ( self . hid ) ,
2367
2367
deprecation : cx. deprecation ( self . hid ) . clean ( cx) ,
2368
2368
def_id : self . def_id ,
2369
2369
inner : MacroItem ( Macro {
@@ -2388,20 +2388,14 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
2388
2388
attrs : self . attrs . clean ( cx) ,
2389
2389
source : self . span . clean ( cx) ,
2390
2390
visibility : Public ,
2391
- stability : cx. stability ( self . id ) . clean ( cx ) ,
2391
+ stability : cx. stability ( self . id ) ,
2392
2392
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
2393
2393
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2394
2394
inner : ProcMacroItem ( ProcMacro { kind : self . kind , helpers : self . helpers . clean ( cx) } ) ,
2395
2395
}
2396
2396
}
2397
2397
}
2398
2398
2399
- impl Clean < attr:: Stability > for attr:: Stability {
2400
- fn clean ( & self , _: & DocContext < ' _ > ) -> attr:: Stability {
2401
- self . clone ( )
2402
- }
2403
- }
2404
-
2405
2399
impl Clean < Deprecation > for attr:: Deprecation {
2406
2400
fn clean ( & self , _: & DocContext < ' _ > ) -> Deprecation {
2407
2401
Deprecation {
0 commit comments