about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
blob: 0b2c09f9e1df98f4bcdafccd8f9cb07b43ee7c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! 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,
}