Replace #[lint/warning/error] with #[diag]

This commit is contained in:
Xiretza 2022-08-19 15:40:48 +02:00
parent bd0d3f745d
commit 7f3a6fd7f6
16 changed files with 446 additions and 390 deletions

View file

@ -265,7 +265,7 @@ impl LintStoreExpand for LintStoreExpandImpl<'_> {
}
#[derive(SessionDiagnostic)]
#[error(interface::ferris_identifier)]
#[diag(interface::ferris_identifier)]
struct FerrisIdentifier {
#[primary_span]
spans: Vec<Span>,
@ -274,7 +274,7 @@ struct FerrisIdentifier {
}
#[derive(SessionDiagnostic)]
#[error(interface::emoji_identifier)]
#[diag(interface::emoji_identifier)]
struct EmojiIdentifier {
#[primary_span]
spans: Vec<Span>,