rust/compiler/rustc_plugin_impl/src/errors.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
444 B
Rust
Raw Normal View History

//! Errors emitted by plugin_impl
use rustc_macros::DiagnosticHandler;
use rustc_span::Span;
#[derive(DiagnosticHandler)]
#[diag(plugin_impl::load_plugin_error)]
pub struct LoadPluginError {
#[primary_span]
pub span: Span,
pub msg: String,
}
#[derive(DiagnosticHandler)]
#[diag(plugin_impl::malformed_plugin_attribute, code = "E0498")]
pub struct MalformedPluginAttribute {
#[primary_span]
#[label]
pub span: Span,
}