2022-08-19 17:29:33 +00:00
|
|
|
//! Errors emitted by plugin_impl
|
|
|
|
|
2022-09-18 15:46:56 +00:00
|
|
|
use rustc_macros::Diagnostic;
|
2022-08-19 17:29:33 +00:00
|
|
|
use rustc_span::Span;
|
|
|
|
|
2022-09-18 15:46:56 +00:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 09:07:54 +00:00
|
|
|
#[diag(plugin_impl_load_plugin_error)]
|
2022-08-19 17:29:33 +00:00
|
|
|
pub struct LoadPluginError {
|
|
|
|
#[primary_span]
|
|
|
|
pub span: Span,
|
|
|
|
pub msg: String,
|
|
|
|
}
|
|
|
|
|
2022-09-18 15:46:56 +00:00
|
|
|
#[derive(Diagnostic)]
|
2022-10-22 09:07:54 +00:00
|
|
|
#[diag(plugin_impl_malformed_plugin_attribute, code = "E0498")]
|
2022-08-19 17:29:33 +00:00
|
|
|
pub struct MalformedPluginAttribute {
|
|
|
|
#[primary_span]
|
|
|
|
#[label]
|
|
|
|
pub span: Span,
|
|
|
|
}
|