rustc_attr_data_structures/
lints.rs

1use rustc_macros::HashStable_Generic;
2use rustc_span::Span;
3
4#[derive(Clone, Debug, HashStable_Generic)]
5pub struct AttributeLint<Id> {
6    pub id: Id,
7    pub span: Span,
8    pub kind: AttributeLintKind,
9}
10
11#[derive(Clone, Debug, HashStable_Generic)]
12pub enum AttributeLintKind {
13    UnusedDuplicate { this: Span, other: Span, warning: bool },
14    IllFormedAttributeInput { suggestions: Vec<String> },
15}