about summary refs log tree commit diff
path: root/compiler/rustc_attr_data_structures/src/lints.rs
blob: e34c54c6d323f3dbea801be13540add732a44fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rustc_macros::HashStable_Generic;
use rustc_span::Span;

#[derive(Clone, Debug, HashStable_Generic)]
pub struct AttributeLint<Id> {
    pub id: Id,
    pub span: Span,
    pub kind: AttributeLintKind,
}

#[derive(Clone, Debug, HashStable_Generic)]
pub enum AttributeLintKind {
    UnusedDuplicate { this: Span, other: Span, warning: bool },
    IllFormedAttributeInput { suggestions: Vec<String> },
}