UPDATE - rename SessionSubdiagnostic macro to Subdiagnostic
Also renames: - sym::AddSubdiagnostic to sym:: Subdiagnostic - rustc_diagnostic_item = "AddSubdiagnostic" to rustc_diagnostic_item = "Subdiagnostic"
This commit is contained in:
parent
a3396b2070
commit
5f91719f75
24 changed files with 130 additions and 128 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Errors emitted by ty_utils
|
||||
|
||||
use rustc_macros::{Diagnostic, SessionSubdiagnostic};
|
||||
use rustc_macros::{Diagnostic, Subdiagnostic};
|
||||
use rustc_middle::ty::Ty;
|
||||
use rustc_span::Span;
|
||||
|
||||
|
@ -22,7 +22,7 @@ pub struct GenericConstantTooComplex {
|
|||
pub sub: GenericConstantTooComplexSub,
|
||||
}
|
||||
|
||||
#[derive(SessionSubdiagnostic)]
|
||||
#[derive(Subdiagnostic)]
|
||||
pub enum GenericConstantTooComplexSub {
|
||||
#[label(ty_utils::borrow_not_supported)]
|
||||
BorrowNotSupported(#[primary_span] Span),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue