From 32f6c0f778fbba73e267d9d61831c118a1f582cc Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sat, 29 Aug 2026 01:10:30 +0000 Subject: [PATCH] Fix `...diagnostics.deprecated...` rule ID In rust-lang/reference#1560, in commit 4ef5f5d93607f, we renamed the rule IDs in the diagnostics chapter, except those for the `diagnostic` tool attribute namespace, to the plural form, `attributes.diagnostics.*`. But we missed one, `attributes.diagnostics.deprecated.allowed-positions` (as corrected). Let's fix that. --- src/attributes/diagnostics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/diagnostics.md b/src/attributes/diagnostics.md index b079d95622..a42223630d 100644 --- a/src/attributes/diagnostics.md +++ b/src/attributes/diagnostics.md @@ -321,7 +321,7 @@ The `deprecated` attribute has several forms: message. This is typically used to provide an explanation about the deprecation and preferred alternatives. -r[attributes.diagnostic.deprecated.allowed-positions] +r[attributes.diagnostics.deprecated.allowed-positions] The `deprecated` attribute may be applied to any [item], [trait item], [enum variant], [struct field], [external block item], or [macro definition]. It cannot be applied to [trait implementation items][trait-impl]. When applied to an item