about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-10-05 12:22:46 +0100
committerGitHub <noreply@github.com>2022-10-05 20:22:46 +0900
commit5a1a2e341d4800a4ffc72405374b8fd7c64727e5 (patch)
tree43b00aa03d714d411dd591482454a36ff61cc885 /src/doc/rustc-dev-guide
parent7722f6dd66523d94cf823faed1d2de24642cdd17 (diff)
downloadrust-5a1a2e341d4800a4ffc72405374b8fd7c64727e5.tar.gz
rust-5a1a2e341d4800a4ffc72405374b8fd7c64727e5.zip
diagnostic structs: derive on enum (#1477)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
index ba7004823fd..3c8b0fd3d89 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
@@ -145,7 +145,7 @@ tcx.sess.emit_err(FieldAlreadyDeclared {
 following attributes:
 
 - `#[diag(slug, code = "...")]`
-  - _Applied to struct._
+  - _Applied to struct or enum variant._
   - _Mandatory_
   - Defines the text and error code to be associated with the diagnostic.
   - Slug (_Mandatory_)