mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 03:56:01 +00:00
17 lines
446 B
Rust
17 lines
446 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> },
|
|
EmptyAttribute { first_span: Span },
|
|
}
|