UPDATE - rename DiagnosticHandler macro to Diagnostic

This commit is contained in:
Jhonny Bill Mena 2022-09-18 11:46:56 -04:00
parent 191fac6826
commit a3396b2070
34 changed files with 484 additions and 484 deletions

View file

@ -8,7 +8,7 @@ use rustc_ast::tokenstream::TokenStream;
use rustc_attr as attr;
use rustc_errors::PResult;
use rustc_expand::base::{self, *};
use rustc_macros::DiagnosticHandler;
use rustc_macros::Diagnostic;
use rustc_span::Span;
pub fn expand_cfg(
@ -35,7 +35,7 @@ pub fn expand_cfg(
}
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(builtin_macros::requires_cfg_pattern)]
struct RequiresCfgPattern {
#[primary_span]
@ -43,7 +43,7 @@ struct RequiresCfgPattern {
span: Span,
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(builtin_macros::expected_one_cfg_pattern)]
struct OneCfgPattern {
#[primary_span]