Replace #[lint/warning/error] with #[diag]
This commit is contained in:
parent
bd0d3f745d
commit
7f3a6fd7f6
16 changed files with 446 additions and 390 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue