File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ fn foo() {
299299> [ !NOTE]
300300> ` rustc ` currently recognizes the tool lints for "[ clippy] " and "[ rustdoc] ".
301301
302+ <!-- template:attributes -->
302303r[ attributes.diagnostics.deprecated]
303304## The ` deprecated ` attribute
304305
@@ -314,7 +315,7 @@ The *`deprecated` [attribute][attributes]* marks an item as deprecated.
314315> ```
315316
316317r [attributes . diagnostics. deprecated. syntax]
317- The `deprecated ` attribute has several forms :
318+ The syntax for the `deprecated ` attribute is :
318319
319320```grammar ,attributes
320321@ root DeprecatedAttribute ->
@@ -340,10 +341,10 @@ The `deprecated` attribute may be applied to:
340341It may not be applied to [ trait implementation items] [ trait-impl ] .
341342
342343> [ !NOTE]
343- > ` rustc ` currently ignores ` deprecated ` in other positions, but this may be rejected in the future.
344+ > ` rustc ` ignores ` deprecated ` in other positions, but this may be rejected in the future.
344345
345346r[ attributes.diagnostics.deprecated.duplicates]
346- The ` deprecated ` attribute may only be specified once on an item.
347+ The ` deprecated ` attribute may only be used once on an item.
347348
348349r[ attributes.diagnostics.deprecated.behavior]
349350A warning is emitted when a deprecated item is used.
You can’t perform that action at this time.
0 commit comments