@@ -654,7 +654,7 @@ impl Clean<Item> for doctree::Module<'_> {
654654 attrs,
655655 source : whence. clean ( cx) ,
656656 visibility : self . vis . clean ( cx) ,
657- stability : self . stab . clean ( cx) ,
657+ stability : cx . stability ( self . hid ) . clean ( cx) ,
658658 deprecation : self . depr . clean ( cx) ,
659659 def_id : cx. tcx . hir ( ) . local_def_id_from_node_id ( self . id ) ,
660660 inner : ModuleItem ( Module {
@@ -1940,7 +1940,7 @@ impl Clean<Item> for doctree::Function<'_> {
19401940 attrs : self . attrs . clean ( cx) ,
19411941 source : self . whence . clean ( cx) ,
19421942 visibility : self . vis . clean ( cx) ,
1943- stability : self . stab . clean ( cx) ,
1943+ stability : cx . stability ( self . id ) . clean ( cx) ,
19441944 deprecation : self . depr . clean ( cx) ,
19451945 def_id : did,
19461946 inner : FunctionItem ( Function {
@@ -2140,7 +2140,7 @@ impl Clean<Item> for doctree::Trait<'_> {
21402140 source : self . whence . clean ( cx) ,
21412141 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
21422142 visibility : self . vis . clean ( cx) ,
2143- stability : self . stab . clean ( cx) ,
2143+ stability : cx . stability ( self . id ) . clean ( cx) ,
21442144 deprecation : self . depr . clean ( cx) ,
21452145 inner : TraitItem ( Trait {
21462146 auto : self . is_auto . clean ( cx) ,
@@ -2170,7 +2170,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
21702170 source : self . whence . clean ( cx) ,
21712171 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
21722172 visibility : self . vis . clean ( cx) ,
2173- stability : self . stab . clean ( cx) ,
2173+ stability : cx . stability ( self . id ) . clean ( cx) ,
21742174 deprecation : self . depr . clean ( cx) ,
21752175 inner : TraitAliasItem ( TraitAlias {
21762176 generics : self . generics . clean ( cx) ,
@@ -3244,7 +3244,7 @@ impl Clean<Item> for doctree::Struct<'_> {
32443244 source : self . whence . clean ( cx) ,
32453245 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
32463246 visibility : self . vis . clean ( cx) ,
3247- stability : self . stab . clean ( cx) ,
3247+ stability : cx . stability ( self . id ) . clean ( cx) ,
32483248 deprecation : self . depr . clean ( cx) ,
32493249 inner : StructItem ( Struct {
32503250 struct_type : self . struct_type ,
@@ -3264,7 +3264,7 @@ impl Clean<Item> for doctree::Union<'_> {
32643264 source : self . whence . clean ( cx) ,
32653265 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
32663266 visibility : self . vis . clean ( cx) ,
3267- stability : self . stab . clean ( cx) ,
3267+ stability : cx . stability ( self . id ) . clean ( cx) ,
32683268 deprecation : self . depr . clean ( cx) ,
32693269 inner : UnionItem ( Union {
32703270 struct_type : self . struct_type ,
@@ -3311,7 +3311,7 @@ impl Clean<Item> for doctree::Enum<'_> {
33113311 source : self . whence . clean ( cx) ,
33123312 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
33133313 visibility : self . vis . clean ( cx) ,
3314- stability : self . stab . clean ( cx) ,
3314+ stability : cx . stability ( self . id ) . clean ( cx) ,
33153315 deprecation : self . depr . clean ( cx) ,
33163316 inner : EnumItem ( Enum {
33173317 variants : self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) ,
@@ -3334,7 +3334,7 @@ impl Clean<Item> for doctree::Variant<'_> {
33343334 attrs : self . attrs . clean ( cx) ,
33353335 source : self . whence . clean ( cx) ,
33363336 visibility : None ,
3337- stability : self . stab . clean ( cx) ,
3337+ stability : cx . stability ( self . id ) . clean ( cx) ,
33383338 deprecation : self . depr . clean ( cx) ,
33393339 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
33403340 inner : VariantItem ( Variant {
@@ -3639,7 +3639,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
36393639 source : self . whence . clean ( cx) ,
36403640 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
36413641 visibility : self . vis . clean ( cx) ,
3642- stability : self . stab . clean ( cx) ,
3642+ stability : cx . stability ( self . id ) . clean ( cx) ,
36433643 deprecation : self . depr . clean ( cx) ,
36443644 inner : TypedefItem ( Typedef {
36453645 type_ : self . ty . clean ( cx) ,
@@ -3663,7 +3663,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
36633663 source : self . whence . clean ( cx) ,
36643664 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
36653665 visibility : self . vis . clean ( cx) ,
3666- stability : self . stab . clean ( cx) ,
3666+ stability : cx . stability ( self . id ) . clean ( cx) ,
36673667 deprecation : self . depr . clean ( cx) ,
36683668 inner : OpaqueTyItem ( OpaqueTy {
36693669 bounds : self . opaque_ty . bounds . clean ( cx) ,
@@ -3714,7 +3714,7 @@ impl Clean<Item> for doctree::Static<'_> {
37143714 source : self . whence . clean ( cx) ,
37153715 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
37163716 visibility : self . vis . clean ( cx) ,
3717- stability : self . stab . clean ( cx) ,
3717+ stability : cx . stability ( self . id ) . clean ( cx) ,
37183718 deprecation : self . depr . clean ( cx) ,
37193719 inner : StaticItem ( Static {
37203720 type_ : self . type_ . clean ( cx) ,
@@ -3739,7 +3739,7 @@ impl Clean<Item> for doctree::Constant<'_> {
37393739 source : self . whence . clean ( cx) ,
37403740 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
37413741 visibility : self . vis . clean ( cx) ,
3742- stability : self . stab . clean ( cx) ,
3742+ stability : cx . stability ( self . id ) . clean ( cx) ,
37433743 deprecation : self . depr . clean ( cx) ,
37443744 inner : ConstantItem ( Constant {
37453745 type_ : self . type_ . clean ( cx) ,
@@ -3826,7 +3826,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
38263826 source : self . whence . clean ( cx) ,
38273827 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
38283828 visibility : self . vis . clean ( cx) ,
3829- stability : self . stab . clean ( cx) ,
3829+ stability : cx . stability ( self . id ) . clean ( cx) ,
38303830 deprecation : self . depr . clean ( cx) ,
38313831 inner : ImplItem ( Impl {
38323832 unsafety : self . unsafety ,
@@ -4065,7 +4065,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
40654065 source : self . whence . clean ( cx) ,
40664066 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
40674067 visibility : self . vis . clean ( cx) ,
4068- stability : self . stab . clean ( cx) ,
4068+ stability : cx . stability ( self . id ) . clean ( cx) ,
40694069 deprecation : self . depr . clean ( cx) ,
40704070 inner,
40714071 }
@@ -4248,7 +4248,7 @@ impl Clean<Item> for doctree::Macro<'_> {
42484248 attrs : self . attrs . clean ( cx) ,
42494249 source : self . whence . clean ( cx) ,
42504250 visibility : Some ( Public ) ,
4251- stability : self . stab . clean ( cx) ,
4251+ stability : cx . stability ( self . hid ) . clean ( cx) ,
42524252 deprecation : self . depr . clean ( cx) ,
42534253 def_id : self . def_id ,
42544254 inner : MacroItem ( Macro {
@@ -4276,7 +4276,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
42764276 attrs : self . attrs . clean ( cx) ,
42774277 source : self . whence . clean ( cx) ,
42784278 visibility : Some ( Public ) ,
4279- stability : self . stab . clean ( cx) ,
4279+ stability : cx . stability ( self . id ) . clean ( cx) ,
42804280 deprecation : self . depr . clean ( cx) ,
42814281 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
42824282 inner : ProcMacroItem ( ProcMacro {
0 commit comments