diff options
| author | Sasha Pourcelot <sasha.pourcelot@protonmail.com> | 2025-08-23 19:45:00 +0200 |
|---|---|---|
| committer | Sasha Pourcelot <sasha.pourcelot@protonmail.com> | 2025-08-25 21:31:04 +0200 |
| commit | a8e9ca195e8345fc574420418d2fd3aed258f703 (patch) | |
| tree | 12ec4f975e39c3cf444b59078625ff439f8a2aee /compiler/rustc_hir/src | |
| parent | 93edf9f9b0bf284d8f8cbe52af5d0569d0cf5850 (diff) | |
| download | rust-a8e9ca195e8345fc574420418d2fd3aed258f703.tar.gz rust-a8e9ca195e8345fc574420418d2fd3aed258f703.zip | |
Use attribute name in message for "outer attr used as inner attr" errors
Diffstat (limited to 'compiler/rustc_hir/src')
| -rw-r--r-- | compiler/rustc_hir/src/lints.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lints.rs b/compiler/rustc_hir/src/lints.rs index 061ec786dc8..0b24052b453 100644 --- a/compiler/rustc_hir/src/lints.rs +++ b/compiler/rustc_hir/src/lints.rs @@ -35,4 +35,5 @@ pub enum AttributeLintKind { IllFormedAttributeInput { suggestions: Vec<String> }, EmptyAttribute { first_span: Span }, InvalidTarget { name: AttrPath, target: Target, applied: Vec<String>, only: &'static str }, + InvalidStyle { name: AttrPath, is_used_as_inner: bool, target: Target, target_span: Span }, } |
