@@ -124,12 +124,13 @@ The `deprecated` attribute has several forms:
124
124
deprecation and preferred alternatives.
125
125
126
126
The ` deprecated ` attribute may be applied to any [ item] , [ trait item] , [ enum
127
- variant] , [ struct field] , or [ external block item] . It cannot be applied to [ trait
128
- implementation items] . When applied to an item containing other items, such as
129
- a [ module] or [ implementation] , all child items inherit the deprecation attribute.
130
- <!-- NOTE: Currently broken for macros, see https://github.com/rust-lang/rust/issues/49912
131
- Also, it is only rejected for trait impl items (AnnotationKind::Prohibited). In all
132
- other locations, it is silently ignored. Tuple struct fields are ignored.
127
+ variant] , [ struct field] , [ external block item] , or [ macro definition] . It
128
+ cannot be applied to [ trait implementation items] . When applied to an item
129
+ containing other items, such as a [ module] or [ implementation] , all child
130
+ items inherit the deprecation attribute.
131
+ <!-- NOTE: It is only rejected for trait impl items
132
+ (AnnotationKind::Prohibited). In all other locations, it is silently ignored.
133
+ Tuple struct fields are ignored.
133
134
-->
134
135
135
136
Here is an example:
@@ -270,6 +271,7 @@ When used on a function in a trait implementation, the attribute does nothing.
270
271
[implementation ]: .. / items / implementations . md
271
272
[item ]: .. / items . md
272
273
[let statement ]: .. / statements . md#let - statements
274
+ [macro definition ]: .. / macros - by - example . md
273
275
[module ]: .. / items / modules . md
274
276
[rustc book ]: .. / .. / rustc / lints / index . html
275
277
[struct field ]: .. / items / structs . md
0 commit comments