@@ -655,7 +655,7 @@ impl Clean<Item> for doctree::Module<'_> {
655655 source : whence. clean ( cx) ,
656656 visibility : self . vis . clean ( cx) ,
657657 stability : cx. stability ( self . hid ) . clean ( cx) ,
658- deprecation : self . depr . clean ( cx) ,
658+ deprecation : cx . deprecation ( self . hid ) . clean ( cx) ,
659659 def_id : cx. tcx . hir ( ) . local_def_id_from_node_id ( self . id ) ,
660660 inner : ModuleItem ( Module {
661661 is_crate : self . is_crate ,
@@ -1941,7 +1941,7 @@ impl Clean<Item> for doctree::Function<'_> {
19411941 source : self . whence . clean ( cx) ,
19421942 visibility : self . vis . clean ( cx) ,
19431943 stability : cx. stability ( self . id ) . clean ( cx) ,
1944- deprecation : self . depr . clean ( cx) ,
1944+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
19451945 def_id : did,
19461946 inner : FunctionItem ( Function {
19471947 decl,
@@ -2141,7 +2141,7 @@ impl Clean<Item> for doctree::Trait<'_> {
21412141 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
21422142 visibility : self . vis . clean ( cx) ,
21432143 stability : cx. stability ( self . id ) . clean ( cx) ,
2144- deprecation : self . depr . clean ( cx) ,
2144+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
21452145 inner : TraitItem ( Trait {
21462146 auto : self . is_auto . clean ( cx) ,
21472147 unsafety : self . unsafety ,
@@ -2171,7 +2171,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
21712171 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
21722172 visibility : self . vis . clean ( cx) ,
21732173 stability : cx. stability ( self . id ) . clean ( cx) ,
2174- deprecation : self . depr . clean ( cx) ,
2174+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
21752175 inner : TraitAliasItem ( TraitAlias {
21762176 generics : self . generics . clean ( cx) ,
21772177 bounds : self . bounds . clean ( cx) ,
@@ -3245,7 +3245,7 @@ impl Clean<Item> for doctree::Struct<'_> {
32453245 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
32463246 visibility : self . vis . clean ( cx) ,
32473247 stability : cx. stability ( self . id ) . clean ( cx) ,
3248- deprecation : self . depr . clean ( cx) ,
3248+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
32493249 inner : StructItem ( Struct {
32503250 struct_type : self . struct_type ,
32513251 generics : self . generics . clean ( cx) ,
@@ -3265,7 +3265,7 @@ impl Clean<Item> for doctree::Union<'_> {
32653265 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
32663266 visibility : self . vis . clean ( cx) ,
32673267 stability : cx. stability ( self . id ) . clean ( cx) ,
3268- deprecation : self . depr . clean ( cx) ,
3268+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
32693269 inner : UnionItem ( Union {
32703270 struct_type : self . struct_type ,
32713271 generics : self . generics . clean ( cx) ,
@@ -3312,7 +3312,7 @@ impl Clean<Item> for doctree::Enum<'_> {
33123312 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
33133313 visibility : self . vis . clean ( cx) ,
33143314 stability : cx. stability ( self . id ) . clean ( cx) ,
3315- deprecation : self . depr . clean ( cx) ,
3315+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
33163316 inner : EnumItem ( Enum {
33173317 variants : self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) ,
33183318 generics : self . generics . clean ( cx) ,
@@ -3335,7 +3335,7 @@ impl Clean<Item> for doctree::Variant<'_> {
33353335 source : self . whence . clean ( cx) ,
33363336 visibility : None ,
33373337 stability : cx. stability ( self . id ) . clean ( cx) ,
3338- deprecation : self . depr . clean ( cx) ,
3338+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
33393339 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
33403340 inner : VariantItem ( Variant {
33413341 kind : self . def . clean ( cx) ,
@@ -3640,7 +3640,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
36403640 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
36413641 visibility : self . vis . clean ( cx) ,
36423642 stability : cx. stability ( self . id ) . clean ( cx) ,
3643- deprecation : self . depr . clean ( cx) ,
3643+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
36443644 inner : TypedefItem ( Typedef {
36453645 type_ : self . ty . clean ( cx) ,
36463646 generics : self . gen . clean ( cx) ,
@@ -3664,7 +3664,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
36643664 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
36653665 visibility : self . vis . clean ( cx) ,
36663666 stability : cx. stability ( self . id ) . clean ( cx) ,
3667- deprecation : self . depr . clean ( cx) ,
3667+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
36683668 inner : OpaqueTyItem ( OpaqueTy {
36693669 bounds : self . opaque_ty . bounds . clean ( cx) ,
36703670 generics : self . opaque_ty . generics . clean ( cx) ,
@@ -3715,7 +3715,7 @@ impl Clean<Item> for doctree::Static<'_> {
37153715 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
37163716 visibility : self . vis . clean ( cx) ,
37173717 stability : cx. stability ( self . id ) . clean ( cx) ,
3718- deprecation : self . depr . clean ( cx) ,
3718+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
37193719 inner : StaticItem ( Static {
37203720 type_ : self . type_ . clean ( cx) ,
37213721 mutability : self . mutability . clean ( cx) ,
@@ -3740,7 +3740,7 @@ impl Clean<Item> for doctree::Constant<'_> {
37403740 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
37413741 visibility : self . vis . clean ( cx) ,
37423742 stability : cx. stability ( self . id ) . clean ( cx) ,
3743- deprecation : self . depr . clean ( cx) ,
3743+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
37443744 inner : ConstantItem ( Constant {
37453745 type_ : self . type_ . clean ( cx) ,
37463746 expr : print_const_expr ( cx, self . expr ) ,
@@ -3827,7 +3827,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
38273827 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
38283828 visibility : self . vis . clean ( cx) ,
38293829 stability : cx. stability ( self . id ) . clean ( cx) ,
3830- deprecation : self . depr . clean ( cx) ,
3830+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
38313831 inner : ImplItem ( Impl {
38323832 unsafety : self . unsafety ,
38333833 generics : self . generics . clean ( cx) ,
@@ -4066,7 +4066,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
40664066 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
40674067 visibility : self . vis . clean ( cx) ,
40684068 stability : cx. stability ( self . id ) . clean ( cx) ,
4069- deprecation : self . depr . clean ( cx) ,
4069+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
40704070 inner,
40714071 }
40724072 }
@@ -4249,7 +4249,7 @@ impl Clean<Item> for doctree::Macro<'_> {
42494249 source : self . whence . clean ( cx) ,
42504250 visibility : Some ( Public ) ,
42514251 stability : cx. stability ( self . hid ) . clean ( cx) ,
4252- deprecation : self . depr . clean ( cx) ,
4252+ deprecation : cx . deprecation ( self . hid ) . clean ( cx) ,
42534253 def_id : self . def_id ,
42544254 inner : MacroItem ( Macro {
42554255 source : format ! ( "macro_rules! {} {{\n {}}}" ,
@@ -4277,7 +4277,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
42774277 source : self . whence . clean ( cx) ,
42784278 visibility : Some ( Public ) ,
42794279 stability : cx. stability ( self . id ) . clean ( cx) ,
4280- deprecation : self . depr . clean ( cx) ,
4280+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
42814281 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
42824282 inner : ProcMacroItem ( ProcMacro {
42834283 kind : self . kind ,
0 commit comments