@@ -654,7 +654,7 @@ impl Clean<Item> for doctree::Module<'_> {
654
654
attrs,
655
655
source : whence. clean ( cx) ,
656
656
visibility : self . vis . clean ( cx) ,
657
- stability : self . stab . clean ( cx) ,
657
+ stability : cx . stability ( self . hid ) . clean ( cx) ,
658
658
deprecation : self . depr . clean ( cx) ,
659
659
def_id : cx. tcx . hir ( ) . local_def_id_from_node_id ( self . id ) ,
660
660
inner : ModuleItem ( Module {
@@ -1940,7 +1940,7 @@ impl Clean<Item> for doctree::Function<'_> {
1940
1940
attrs : self . attrs . clean ( cx) ,
1941
1941
source : self . whence . clean ( cx) ,
1942
1942
visibility : self . vis . clean ( cx) ,
1943
- stability : self . stab . clean ( cx) ,
1943
+ stability : cx . stability ( self . id ) . clean ( cx) ,
1944
1944
deprecation : self . depr . clean ( cx) ,
1945
1945
def_id : did,
1946
1946
inner : FunctionItem ( Function {
@@ -2140,7 +2140,7 @@ impl Clean<Item> for doctree::Trait<'_> {
2140
2140
source : self . whence . clean ( cx) ,
2141
2141
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
2142
2142
visibility : self . vis . clean ( cx) ,
2143
- stability : self . stab . clean ( cx) ,
2143
+ stability : cx . stability ( self . id ) . clean ( cx) ,
2144
2144
deprecation : self . depr . clean ( cx) ,
2145
2145
inner : TraitItem ( Trait {
2146
2146
auto : self . is_auto . clean ( cx) ,
@@ -2170,7 +2170,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
2170
2170
source : self . whence . clean ( cx) ,
2171
2171
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
2172
2172
visibility : self . vis . clean ( cx) ,
2173
- stability : self . stab . clean ( cx) ,
2173
+ stability : cx . stability ( self . id ) . clean ( cx) ,
2174
2174
deprecation : self . depr . clean ( cx) ,
2175
2175
inner : TraitAliasItem ( TraitAlias {
2176
2176
generics : self . generics . clean ( cx) ,
@@ -3244,7 +3244,7 @@ impl Clean<Item> for doctree::Struct<'_> {
3244
3244
source : self . whence . clean ( cx) ,
3245
3245
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3246
3246
visibility : self . vis . clean ( cx) ,
3247
- stability : self . stab . clean ( cx) ,
3247
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3248
3248
deprecation : self . depr . clean ( cx) ,
3249
3249
inner : StructItem ( Struct {
3250
3250
struct_type : self . struct_type ,
@@ -3264,7 +3264,7 @@ impl Clean<Item> for doctree::Union<'_> {
3264
3264
source : self . whence . clean ( cx) ,
3265
3265
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3266
3266
visibility : self . vis . clean ( cx) ,
3267
- stability : self . stab . clean ( cx) ,
3267
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3268
3268
deprecation : self . depr . clean ( cx) ,
3269
3269
inner : UnionItem ( Union {
3270
3270
struct_type : self . struct_type ,
@@ -3311,7 +3311,7 @@ impl Clean<Item> for doctree::Enum<'_> {
3311
3311
source : self . whence . clean ( cx) ,
3312
3312
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3313
3313
visibility : self . vis . clean ( cx) ,
3314
- stability : self . stab . clean ( cx) ,
3314
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3315
3315
deprecation : self . depr . clean ( cx) ,
3316
3316
inner : EnumItem ( Enum {
3317
3317
variants : self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) ,
@@ -3334,7 +3334,7 @@ impl Clean<Item> for doctree::Variant<'_> {
3334
3334
attrs : self . attrs . clean ( cx) ,
3335
3335
source : self . whence . clean ( cx) ,
3336
3336
visibility : None ,
3337
- stability : self . stab . clean ( cx) ,
3337
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3338
3338
deprecation : self . depr . clean ( cx) ,
3339
3339
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3340
3340
inner : VariantItem ( Variant {
@@ -3639,7 +3639,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
3639
3639
source : self . whence . clean ( cx) ,
3640
3640
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3641
3641
visibility : self . vis . clean ( cx) ,
3642
- stability : self . stab . clean ( cx) ,
3642
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3643
3643
deprecation : self . depr . clean ( cx) ,
3644
3644
inner : TypedefItem ( Typedef {
3645
3645
type_ : self . ty . clean ( cx) ,
@@ -3663,7 +3663,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
3663
3663
source : self . whence . clean ( cx) ,
3664
3664
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3665
3665
visibility : self . vis . clean ( cx) ,
3666
- stability : self . stab . clean ( cx) ,
3666
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3667
3667
deprecation : self . depr . clean ( cx) ,
3668
3668
inner : OpaqueTyItem ( OpaqueTy {
3669
3669
bounds : self . opaque_ty . bounds . clean ( cx) ,
@@ -3714,7 +3714,7 @@ impl Clean<Item> for doctree::Static<'_> {
3714
3714
source : self . whence . clean ( cx) ,
3715
3715
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3716
3716
visibility : self . vis . clean ( cx) ,
3717
- stability : self . stab . clean ( cx) ,
3717
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3718
3718
deprecation : self . depr . clean ( cx) ,
3719
3719
inner : StaticItem ( Static {
3720
3720
type_ : self . type_ . clean ( cx) ,
@@ -3739,7 +3739,7 @@ impl Clean<Item> for doctree::Constant<'_> {
3739
3739
source : self . whence . clean ( cx) ,
3740
3740
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3741
3741
visibility : self . vis . clean ( cx) ,
3742
- stability : self . stab . clean ( cx) ,
3742
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3743
3743
deprecation : self . depr . clean ( cx) ,
3744
3744
inner : ConstantItem ( Constant {
3745
3745
type_ : self . type_ . clean ( cx) ,
@@ -3826,7 +3826,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
3826
3826
source : self . whence . clean ( cx) ,
3827
3827
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3828
3828
visibility : self . vis . clean ( cx) ,
3829
- stability : self . stab . clean ( cx) ,
3829
+ stability : cx . stability ( self . id ) . clean ( cx) ,
3830
3830
deprecation : self . depr . clean ( cx) ,
3831
3831
inner : ImplItem ( Impl {
3832
3832
unsafety : self . unsafety ,
@@ -4065,7 +4065,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
4065
4065
source : self . whence . clean ( cx) ,
4066
4066
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
4067
4067
visibility : self . vis . clean ( cx) ,
4068
- stability : self . stab . clean ( cx) ,
4068
+ stability : cx . stability ( self . id ) . clean ( cx) ,
4069
4069
deprecation : self . depr . clean ( cx) ,
4070
4070
inner,
4071
4071
}
@@ -4248,7 +4248,7 @@ impl Clean<Item> for doctree::Macro<'_> {
4248
4248
attrs : self . attrs . clean ( cx) ,
4249
4249
source : self . whence . clean ( cx) ,
4250
4250
visibility : Some ( Public ) ,
4251
- stability : self . stab . clean ( cx) ,
4251
+ stability : cx . stability ( self . hid ) . clean ( cx) ,
4252
4252
deprecation : self . depr . clean ( cx) ,
4253
4253
def_id : self . def_id ,
4254
4254
inner : MacroItem ( Macro {
@@ -4276,7 +4276,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
4276
4276
attrs : self . attrs . clean ( cx) ,
4277
4277
source : self . whence . clean ( cx) ,
4278
4278
visibility : Some ( Public ) ,
4279
- stability : self . stab . clean ( cx) ,
4279
+ stability : cx . stability ( self . id ) . clean ( cx) ,
4280
4280
deprecation : self . depr . clean ( cx) ,
4281
4281
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
4282
4282
inner : ProcMacroItem ( ProcMacro {
0 commit comments