15 lines
347 B
Rust
15 lines
347 B
Rust
|
|
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 },
|
||
|
|
}
|