diff options
| author | jyn <github@jyn.dev> | 2023-12-24 18:34:31 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2024-10-27 21:23:28 -0400 |
| commit | 3141a65d253829eadcb525abb9f418fd752c5718 (patch) | |
| tree | 1abe263dc96ce01b8286e7566a3630e533af65cf /compiler/rustc_macros/src/diagnostics/utils.rs | |
| parent | d792e1f50af4c7006c351ff1eed8c32eee10d3e8 (diff) | |
| download | rust-3141a65d253829eadcb525abb9f418fd752c5718.tar.gz rust-3141a65d253829eadcb525abb9f418fd752c5718.zip | |
give a better error for tuple structs in `derive(Diagnostic)`
Diffstat (limited to 'compiler/rustc_macros/src/diagnostics/utils.rs')
| -rw-r--r-- | compiler/rustc_macros/src/diagnostics/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/utils.rs b/compiler/rustc_macros/src/diagnostics/utils.rs index 5946b11828e..612a36ba9aa 100644 --- a/compiler/rustc_macros/src/diagnostics/utils.rs +++ b/compiler/rustc_macros/src/diagnostics/utils.rs @@ -243,7 +243,7 @@ impl<T> SetOnce<T> for SpannedOption<T> { *self = Some((value, span)); } Some((_, prev_span)) => { - span_err(span, "specified multiple times") + span_err(span, "attribute specified multiple times") .span_note(*prev_span, "previously specified here") .emit(); } |
