about summary refs log tree commit diff
path: root/compiler/rustc_hir/src
diff options
context:
space:
mode:
authorSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-23 19:45:00 +0200
committerSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-25 21:31:04 +0200
commita8e9ca195e8345fc574420418d2fd3aed258f703 (patch)
tree12ec4f975e39c3cf444b59078625ff439f8a2aee /compiler/rustc_hir/src
parent93edf9f9b0bf284d8f8cbe52af5d0569d0cf5850 (diff)
downloadrust-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.rs1
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 },
 }