mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
21 lines
444 B
Rust
21 lines
444 B
Rust
//! Errors emitted by plugin_impl
|
|
|
|
use rustc_macros::SessionDiagnostic;
|
|
use rustc_span::Span;
|
|
|
|
#[derive(SessionDiagnostic)]
|
|
#[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")]
|
|
pub struct MalformedPluginAttribute {
|
|
#[primary_span]
|
|
#[label]
|
|
pub span: Span,
|
|
}
|