diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/rustc_plugin_impl/Cargo.toml | 1 | ||||
-rw-r--r-- | compiler/rustc_plugin_impl/src/errors.rs | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/compiler/rustc_plugin_impl/Cargo.toml b/compiler/rustc_plugin_impl/Cargo.toml index c409b6c3e..fa27bfc61 100644 --- a/compiler/rustc_plugin_impl/Cargo.toml +++ b/compiler/rustc_plugin_impl/Cargo.toml @@ -5,7 +5,6 @@ build = false edition = "2021" [lib] -doctest = false [dependencies] libloading = "0.7.1" diff --git a/compiler/rustc_plugin_impl/src/errors.rs b/compiler/rustc_plugin_impl/src/errors.rs index 2bdb6e4fe..e6a7fc86b 100644 --- a/compiler/rustc_plugin_impl/src/errors.rs +++ b/compiler/rustc_plugin_impl/src/errors.rs @@ -1,18 +1,18 @@ //! Errors emitted by plugin_impl -use rustc_macros::SessionDiagnostic; +use rustc_macros::Diagnostic; use rustc_span::Span; -#[derive(SessionDiagnostic)] -#[diag(plugin_impl::load_plugin_error)] +#[derive(Diagnostic)] +#[diag(plugin_impl_load_plugin_error)] pub struct LoadPluginError { #[primary_span] pub span: Span, pub msg: String, } -#[derive(SessionDiagnostic)] -#[diag(plugin_impl::malformed_plugin_attribute, code = "E0498")] +#[derive(Diagnostic)] +#[diag(plugin_impl_malformed_plugin_attribute, code = "E0498")] pub struct MalformedPluginAttribute { #[primary_span] #[label] |