diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-09-16 11:52:17 -0700 | 
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-09-27 19:32:14 +0200 | 
| commit | b3631e1174e222bf1dadf1549cfd0f717ebf6d64 (patch) | |
| tree | 10ca9f88ec5f1224947544cfd2d5ca76d09e13d1 /compiler/rustc_attr_parsing/src/session_diagnostics.rs | |
| parent | ade84871f718ea20a6460d28e82290353b4bf3d2 (diff) | |
| download | rust-b3631e1174e222bf1dadf1549cfd0f717ebf6d64.tar.gz rust-b3631e1174e222bf1dadf1549cfd0f717ebf6d64.zip | |
improve empty attribute diagnostic
Diffstat (limited to 'compiler/rustc_attr_parsing/src/session_diagnostics.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/session_diagnostics.rs | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/compiler/rustc_attr_parsing/src/session_diagnostics.rs b/compiler/rustc_attr_parsing/src/session_diagnostics.rs index 2c2b14c8a68..1194ac5872c 100644 --- a/compiler/rustc_attr_parsing/src/session_diagnostics.rs +++ b/compiler/rustc_attr_parsing/src/session_diagnostics.rs @@ -503,9 +503,12 @@ pub(crate) struct EmptyConfusables { #[derive(LintDiagnostic)] #[diag(attr_parsing_empty_attribute)] +#[note] pub(crate) struct EmptyAttributeList { #[suggestion(code = "", applicability = "machine-applicable")] pub attr_span: Span, + pub attr_path: AttrPath, + pub valid_without_list: bool, } #[derive(LintDiagnostic)] | 
