1
Fork 0

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

@ -2,10 +2,10 @@ use std::path::PathBuf;
use rustc_errors::IntoDiagnostic;
use rustc_errors::ErrorGuaranteed;
use rustc_macros::{DiagnosticHandler, LintDiagnostic};
use rustc_macros::{Diagnostic, LintDiagnostic};
use rustc_span::Span;
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(monomorphize::recursion_limit)]
pub struct RecursionLimit {
#[primary_span]
@ -19,7 +19,7 @@ pub struct RecursionLimit {
pub path: PathBuf,
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(monomorphize::type_length_limit)]
#[help(monomorphize::consider_type_length_limit)]
pub struct TypeLengthLimit {
@ -32,7 +32,7 @@ pub struct TypeLengthLimit {
pub type_length: usize,
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(monomorphize::requires_lang_item)]
pub struct RequiresLangItem {
pub lang_item: String,
@ -72,11 +72,11 @@ pub struct LargeAssignmentsLint {
pub limit: u64,
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(monomorphize::unknown_partition_strategy)]
pub struct UnknownPartitionStrategy;
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(monomorphize::symbol_already_defined)]
pub struct SymbolAlreadyDefined {
#[primary_span]