From 2196589ccf8fefc4edeaa0ab430fe2ce6a57dec3 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 14 May 2020 13:04:30 -0700 Subject: [PATCH] Update that macros can be deprecated. --- src/attributes/diagnostics.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/attributes/diagnostics.md b/src/attributes/diagnostics.md index 9357a5f26..6a972d322 100644 --- a/src/attributes/diagnostics.md +++ b/src/attributes/diagnostics.md @@ -124,12 +124,13 @@ The `deprecated` attribute has several forms: deprecation and preferred alternatives. The `deprecated` attribute may be applied to any [item], [trait item], [enum -variant], [struct field], or [external block item]. It cannot be applied to [trait -implementation items]. When applied to an item containing other items, such as -a [module] or [implementation], all child items inherit the deprecation attribute. - Here is an example: @@ -270,6 +271,7 @@ When used on a function in a trait implementation, the attribute does nothing. [implementation]: ../items/implementations.md [item]: ../items.md [let statement]: ../statements.md#let-statements +[macro definition]: ../macros-by-example.md [module]: ../items/modules.md [rustc book]: ../../rustc/lints/index.html [struct field]: ../items/structs.md