summaryrefslogtreecommitdiff
path: root/compiler/rustc_plugin_impl
diff options
context:
space:
mode:
authorJhonny Bill Mena <jhonnybillm@gmail.com>2022-09-18 11:45:41 -0400
committerJhonny Bill Mena <jhonnybillm@gmail.com>2022-09-21 11:39:52 -0400
commit19b348fed44342d8addbbb5e8f67cda5dc8d9b95 (patch)
tree08bc0d9e7f50ba3a3eb8f227ce9f1e82904a6cb5 /compiler/rustc_plugin_impl
parent5b8152807cae152d5c7cfb40615e5a817a6cf750 (diff)
downloadrust-19b348fed44342d8addbbb5e8f67cda5dc8d9b95.tar.gz
UPDATE - rename DiagnosticHandler trait to IntoDiagnostic
Diffstat (limited to 'compiler/rustc_plugin_impl')
-rw-r--r--compiler/rustc_plugin_impl/src/errors.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_plugin_impl/src/errors.rs b/compiler/rustc_plugin_impl/src/errors.rs
index 2bdb6e4feca..0b2c09f9e1d 100644
--- a/compiler/rustc_plugin_impl/src/errors.rs
+++ b/compiler/rustc_plugin_impl/src/errors.rs
@@ -1,9 +1,9 @@
//! Errors emitted by plugin_impl
-use rustc_macros::SessionDiagnostic;
+use rustc_macros::DiagnosticHandler;
use rustc_span::Span;
-#[derive(SessionDiagnostic)]
+#[derive(DiagnosticHandler)]
#[diag(plugin_impl::load_plugin_error)]
pub struct LoadPluginError {
#[primary_span]
@@ -11,7 +11,7 @@ pub struct LoadPluginError {
pub msg: String,
}
-#[derive(SessionDiagnostic)]
+#[derive(DiagnosticHandler)]
#[diag(plugin_impl::malformed_plugin_attribute, code = "E0498")]
pub struct MalformedPluginAttribute {
#[primary_span]