mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-30 04:24:26 +00:00
16 lines
405 B
Rust
16 lines
405 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 },
|
|
IllFormedAttributeInput { suggestions: Vec<String> },
|
|
}
|