diff options
| author | David Wood <david.wood@huawei.com> | 2022-10-05 12:22:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-05 20:22:46 +0900 |
| commit | 5a1a2e341d4800a4ffc72405374b8fd7c64727e5 (patch) | |
| tree | 43b00aa03d714d411dd591482454a36ff61cc885 /src/doc/rustc-dev-guide | |
| parent | 7722f6dd66523d94cf823faed1d2de24642cdd17 (diff) | |
| download | rust-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.md | 2 |
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_) |
