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,5 +1,5 @@
|
|||
use rustc_errors::{Applicability, MultiSpan};
|
||||
use rustc_macros::{Diagnostic, LintDiagnostic, SessionSubdiagnostic};
|
||||
use rustc_macros::{Diagnostic, LintDiagnostic, Subdiagnostic};
|
||||
use rustc_span::{Span, Symbol};
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
|
@ -583,7 +583,7 @@ pub struct MacroExport;
|
|||
#[diag(passes::plugin_registrar)]
|
||||
pub struct PluginRegistrar;
|
||||
|
||||
#[derive(SessionSubdiagnostic)]
|
||||
#[derive(Subdiagnostic)]
|
||||
pub enum UnusedNote {
|
||||
#[note(passes::unused_empty_lints_note)]
|
||||
EmptyList { name: Symbol },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue