UPDATE - rename DiagnosticHandler macro to Diagnostic
This commit is contained in:
parent
191fac6826
commit
a3396b2070
34 changed files with 484 additions and 484 deletions
|
@ -1,16 +1,16 @@
|
|||
//! Errors emitted by ty_utils
|
||||
|
||||
use rustc_macros::{DiagnosticHandler, SessionSubdiagnostic};
|
||||
use rustc_macros::{Diagnostic, SessionSubdiagnostic};
|
||||
use rustc_middle::ty::Ty;
|
||||
use rustc_span::Span;
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ty_utils::needs_drop_overflow)]
|
||||
pub struct NeedsDropOverflow<'tcx> {
|
||||
pub query_ty: Ty<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(DiagnosticHandler)]
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(ty_utils::generic_constant_too_complex)]
|
||||
#[help]
|
||||
pub struct GenericConstantTooComplex {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue