2022-08-24 17:15:44 +00:00
|
|
|
use rustc_codegen_ssa::session_diagnostic::DeserializeRlinkError;
|
2022-08-22 21:43:09 +00:00
|
|
|
use rustc_macros::SessionDiagnostic;
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 16:48:46 +00:00
|
|
|
#[diag(driver::rlink_unable_to_read)]
|
2022-08-22 21:43:09 +00:00
|
|
|
pub(crate) struct RlinkUnableToRead {
|
2022-08-24 12:12:39 +00:00
|
|
|
pub err: std::io::Error,
|
2022-08-22 21:43:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 16:48:46 +00:00
|
|
|
#[diag(driver::rlink_unable_to_deserialize)]
|
2022-08-22 21:43:09 +00:00
|
|
|
pub(crate) struct RlinkUnableToDeserialize {
|
2022-08-24 17:15:44 +00:00
|
|
|
pub err: DeserializeRlinkError,
|
2022-08-22 21:43:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
2022-08-23 16:48:46 +00:00
|
|
|
#[diag(driver::rlink_no_a_file)]
|
2022-08-24 12:12:39 +00:00
|
|
|
pub(crate) struct RlinkNotAFile;
|