mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
20 lines
478 B
Rust
20 lines
478 B
Rust
![]() |
use rustc_macros::SessionDiagnostic;
|
||
|
use rustc_span::{Span, Symbol};
|
||
|
|
||
|
#[derive(SessionDiagnostic)]
|
||
|
#[diag(interface::ferris_identifier)]
|
||
|
pub struct FerrisIdentifier {
|
||
|
#[primary_span]
|
||
|
pub spans: Vec<Span>,
|
||
|
#[suggestion(code = "ferris", applicability = "maybe-incorrect")]
|
||
|
pub first_span: Span,
|
||
|
}
|
||
|
|
||
|
#[derive(SessionDiagnostic)]
|
||
|
#[diag(interface::emoji_identifier)]
|
||
|
pub struct EmojiIdentifier {
|
||
|
#[primary_span]
|
||
|
pub spans: Vec<Span>,
|
||
|
pub ident: Symbol,
|
||
|
}
|