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

@ -1,9 +1,9 @@
//! Errors emitted by plugin_impl
use rustc_macros::DiagnosticHandler;
use rustc_macros::Diagnostic;
use rustc_span::Span;
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(plugin_impl::load_plugin_error)]
pub struct LoadPluginError {
#[primary_span]
@ -11,7 +11,7 @@ pub struct LoadPluginError {
pub msg: String,
}
#[derive(DiagnosticHandler)]
#[derive(Diagnostic)]
#[diag(plugin_impl::malformed_plugin_attribute, code = "E0498")]
pub struct MalformedPluginAttribute {
#[primary_span]