//! 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]
pub msg: String,
}
-#[derive(DiagnosticHandler)]
+#[derive(Diagnostic)]
#[diag(plugin_impl::malformed_plugin_attribute, code = "E0498")]
pub struct MalformedPluginAttribute {
#[primary_span]