@@ -655,7 +655,7 @@ impl Clean<Item> for doctree::Module<'_> {
655
655
source : whence. clean ( cx) ,
656
656
visibility : self . vis . clean ( cx) ,
657
657
stability : cx. stability ( self . hid ) . clean ( cx) ,
658
- deprecation : self . depr . clean ( cx) ,
658
+ deprecation : cx . deprecation ( self . hid ) . clean ( cx) ,
659
659
def_id : cx. tcx . hir ( ) . local_def_id_from_node_id ( self . id ) ,
660
660
inner : ModuleItem ( Module {
661
661
is_crate : self . is_crate ,
@@ -1941,7 +1941,7 @@ impl Clean<Item> for doctree::Function<'_> {
1941
1941
source : self . whence . clean ( cx) ,
1942
1942
visibility : self . vis . clean ( cx) ,
1943
1943
stability : cx. stability ( self . id ) . clean ( cx) ,
1944
- deprecation : self . depr . clean ( cx) ,
1944
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
1945
1945
def_id : did,
1946
1946
inner : FunctionItem ( Function {
1947
1947
decl,
@@ -2141,7 +2141,7 @@ impl Clean<Item> for doctree::Trait<'_> {
2141
2141
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
2142
2142
visibility : self . vis . clean ( cx) ,
2143
2143
stability : cx. stability ( self . id ) . clean ( cx) ,
2144
- deprecation : self . depr . clean ( cx) ,
2144
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
2145
2145
inner : TraitItem ( Trait {
2146
2146
auto : self . is_auto . clean ( cx) ,
2147
2147
unsafety : self . unsafety ,
@@ -2171,7 +2171,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
2171
2171
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
2172
2172
visibility : self . vis . clean ( cx) ,
2173
2173
stability : cx. stability ( self . id ) . clean ( cx) ,
2174
- deprecation : self . depr . clean ( cx) ,
2174
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
2175
2175
inner : TraitAliasItem ( TraitAlias {
2176
2176
generics : self . generics . clean ( cx) ,
2177
2177
bounds : self . bounds . clean ( cx) ,
@@ -3245,7 +3245,7 @@ impl Clean<Item> for doctree::Struct<'_> {
3245
3245
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3246
3246
visibility : self . vis . clean ( cx) ,
3247
3247
stability : cx. stability ( self . id ) . clean ( cx) ,
3248
- deprecation : self . depr . clean ( cx) ,
3248
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3249
3249
inner : StructItem ( Struct {
3250
3250
struct_type : self . struct_type ,
3251
3251
generics : self . generics . clean ( cx) ,
@@ -3265,7 +3265,7 @@ impl Clean<Item> for doctree::Union<'_> {
3265
3265
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3266
3266
visibility : self . vis . clean ( cx) ,
3267
3267
stability : cx. stability ( self . id ) . clean ( cx) ,
3268
- deprecation : self . depr . clean ( cx) ,
3268
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3269
3269
inner : UnionItem ( Union {
3270
3270
struct_type : self . struct_type ,
3271
3271
generics : self . generics . clean ( cx) ,
@@ -3312,7 +3312,7 @@ impl Clean<Item> for doctree::Enum<'_> {
3312
3312
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3313
3313
visibility : self . vis . clean ( cx) ,
3314
3314
stability : cx. stability ( self . id ) . clean ( cx) ,
3315
- deprecation : self . depr . clean ( cx) ,
3315
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3316
3316
inner : EnumItem ( Enum {
3317
3317
variants : self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) ,
3318
3318
generics : self . generics . clean ( cx) ,
@@ -3335,7 +3335,7 @@ impl Clean<Item> for doctree::Variant<'_> {
3335
3335
source : self . whence . clean ( cx) ,
3336
3336
visibility : None ,
3337
3337
stability : cx. stability ( self . id ) . clean ( cx) ,
3338
- deprecation : self . depr . clean ( cx) ,
3338
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3339
3339
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3340
3340
inner : VariantItem ( Variant {
3341
3341
kind : self . def . clean ( cx) ,
@@ -3640,7 +3640,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
3640
3640
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3641
3641
visibility : self . vis . clean ( cx) ,
3642
3642
stability : cx. stability ( self . id ) . clean ( cx) ,
3643
- deprecation : self . depr . clean ( cx) ,
3643
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3644
3644
inner : TypedefItem ( Typedef {
3645
3645
type_ : self . ty . clean ( cx) ,
3646
3646
generics : self . gen . clean ( cx) ,
@@ -3664,7 +3664,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
3664
3664
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3665
3665
visibility : self . vis . clean ( cx) ,
3666
3666
stability : cx. stability ( self . id ) . clean ( cx) ,
3667
- deprecation : self . depr . clean ( cx) ,
3667
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3668
3668
inner : OpaqueTyItem ( OpaqueTy {
3669
3669
bounds : self . opaque_ty . bounds . clean ( cx) ,
3670
3670
generics : self . opaque_ty . generics . clean ( cx) ,
@@ -3715,7 +3715,7 @@ impl Clean<Item> for doctree::Static<'_> {
3715
3715
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3716
3716
visibility : self . vis . clean ( cx) ,
3717
3717
stability : cx. stability ( self . id ) . clean ( cx) ,
3718
- deprecation : self . depr . clean ( cx) ,
3718
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3719
3719
inner : StaticItem ( Static {
3720
3720
type_ : self . type_ . clean ( cx) ,
3721
3721
mutability : self . mutability . clean ( cx) ,
@@ -3740,7 +3740,7 @@ impl Clean<Item> for doctree::Constant<'_> {
3740
3740
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3741
3741
visibility : self . vis . clean ( cx) ,
3742
3742
stability : cx. stability ( self . id ) . clean ( cx) ,
3743
- deprecation : self . depr . clean ( cx) ,
3743
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3744
3744
inner : ConstantItem ( Constant {
3745
3745
type_ : self . type_ . clean ( cx) ,
3746
3746
expr : print_const_expr ( cx, self . expr ) ,
@@ -3827,7 +3827,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
3827
3827
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
3828
3828
visibility : self . vis . clean ( cx) ,
3829
3829
stability : cx. stability ( self . id ) . clean ( cx) ,
3830
- deprecation : self . depr . clean ( cx) ,
3830
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
3831
3831
inner : ImplItem ( Impl {
3832
3832
unsafety : self . unsafety ,
3833
3833
generics : self . generics . clean ( cx) ,
@@ -4066,7 +4066,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
4066
4066
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
4067
4067
visibility : self . vis . clean ( cx) ,
4068
4068
stability : cx. stability ( self . id ) . clean ( cx) ,
4069
- deprecation : self . depr . clean ( cx) ,
4069
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
4070
4070
inner,
4071
4071
}
4072
4072
}
@@ -4249,7 +4249,7 @@ impl Clean<Item> for doctree::Macro<'_> {
4249
4249
source : self . whence . clean ( cx) ,
4250
4250
visibility : Some ( Public ) ,
4251
4251
stability : cx. stability ( self . hid ) . clean ( cx) ,
4252
- deprecation : self . depr . clean ( cx) ,
4252
+ deprecation : cx . deprecation ( self . hid ) . clean ( cx) ,
4253
4253
def_id : self . def_id ,
4254
4254
inner : MacroItem ( Macro {
4255
4255
source : format ! ( "macro_rules! {} {{\n {}}}" ,
@@ -4277,7 +4277,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
4277
4277
source : self . whence . clean ( cx) ,
4278
4278
visibility : Some ( Public ) ,
4279
4279
stability : cx. stability ( self . id ) . clean ( cx) ,
4280
- deprecation : self . depr . clean ( cx) ,
4280
+ deprecation : cx . deprecation ( self . id ) . clean ( cx) ,
4281
4281
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
4282
4282
inner : ProcMacroItem ( ProcMacro {
4283
4283
kind : self . kind ,
0 commit comments