about summary refs log tree commit diff
path: root/compiler/rustc_hir
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-08-16 18:04:58 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-08-21 13:15:30 +0200
commit2158e2d4d7b2722325de01530296c4e93297c06f (patch)
treed18a87ad2bc0cdb0fd5cabf8f59ab2eb6d7beb7f /compiler/rustc_hir
parent9be8effb3f7636521d0d177fe23504bd69094ba3 (diff)
downloadrust-2158e2d4d7b2722325de01530296c4e93297c06f.tar.gz
rust-2158e2d4d7b2722325de01530296c4e93297c06f.zip
refactor target checking, move out of context.rs and rename MaybeWarn to Policy
Diffstat (limited to 'compiler/rustc_hir')
-rw-r--r--compiler/rustc_hir/src/lints.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_hir/src/lints.rs b/compiler/rustc_hir/src/lints.rs
index e3cde2d3bb6..061ec786dc8 100644
--- a/compiler/rustc_hir/src/lints.rs
+++ b/compiler/rustc_hir/src/lints.rs
@@ -1,8 +1,8 @@
 use rustc_data_structures::fingerprint::Fingerprint;
 use rustc_macros::HashStable_Generic;
-use rustc_span::{Span, Symbol};
+use rustc_span::Span;
 
-use crate::{HirId, Target};
+use crate::{AttrPath, HirId, Target};
 
 #[derive(Debug)]
 pub struct DelayedLints {
@@ -34,5 +34,5 @@ pub enum AttributeLintKind {
     UnusedDuplicate { this: Span, other: Span, warning: bool },
     IllFormedAttributeInput { suggestions: Vec<String> },
     EmptyAttribute { first_span: Span },
-    InvalidTarget { name: Symbol, target: Target, applied: String, only: &'static str },
+    InvalidTarget { name: AttrPath, target: Target, applied: Vec<String>, only: &'static str },
 }