diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-06-29 12:40:30 +0200 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-07-01 16:10:07 +0200 |
| commit | d22ce4c5eb40d718a1465967acfb8cee38e3aec8 (patch) | |
| tree | 7d410f2960656c6d1d52b9b01e012ae044ba93f3 /compiler/rustc_attr_parsing/src/session_diagnostics.rs | |
| parent | 0b67d14b31aefa8a2bf8e336ee4f029e046dd545 (diff) | |
| download | rust-d22ce4c5eb40d718a1465967acfb8cee38e3aec8.tar.gz rust-d22ce4c5eb40d718a1465967acfb8cee38e3aec8.zip | |
Fix duplicate help on export_name and others
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_attr_parsing/src/session_diagnostics.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/session_diagnostics.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_attr_parsing/src/session_diagnostics.rs b/compiler/rustc_attr_parsing/src/session_diagnostics.rs index a815aa8c7a8..6145f1e1d3e 100644 --- a/compiler/rustc_attr_parsing/src/session_diagnostics.rs +++ b/compiler/rustc_attr_parsing/src/session_diagnostics.rs @@ -577,10 +577,7 @@ impl<'a, G: EmissionGuarantee> Diagnostic<'a, G> for AttributeParseError { diag.code(E0565); } AttributeParseErrorReason::ExpectedNameValue(None) => { - diag.span_label( - self.span, - format!("expected this to be of the form `{name} = \"...\"`"), - ); + // The suggestion we add below this match already contains enough information } AttributeParseErrorReason::ExpectedNameValue(Some(name)) => { diag.span_label( |
