rust/compiler/rustc_driver/src/session_diagnostics.rs
2022-08-25 18:06:12 +02:00

18 lines
423 B
Rust

use rustc_macros::SessionDiagnostic;
#[derive(SessionDiagnostic)]
#[diag(driver::rlink_unable_to_read)]
pub(crate) struct RlinkUnableToRead {
pub err: std::io::Error,
}
#[derive(SessionDiagnostic)]
#[diag(driver::rlink_unable_to_deserialize)]
pub(crate) struct RlinkUnableToDeserialize {
pub error_message: String,
}
#[derive(SessionDiagnostic)]
#[diag(driver::rlink_no_a_file)]
pub(crate) struct RlinkNotAFile;