1 use rustc_macros::SessionDiagnostic;
3 #[derive(SessionDiagnostic)]
4 #[diag(driver::rlink_unable_to_read)]
5 pub(crate) struct RlinkUnableToRead {
6 pub err: std::io::Error,
9 #[derive(SessionDiagnostic)]
10 #[diag(driver::rlink_wrong_file_type)]
11 pub(crate) struct RLinkWrongFileType;
13 #[derive(SessionDiagnostic)]
14 #[diag(driver::rlink_empty_version_number)]
15 pub(crate) struct RLinkEmptyVersionNumber;
17 #[derive(SessionDiagnostic)]
18 #[diag(driver::rlink_encoding_version_mismatch)]
19 pub(crate) struct RLinkEncodingVersionMismatch {
20 pub version_array: String,
21 pub rlink_version: u32,
24 #[derive(SessionDiagnostic)]
25 #[diag(driver::rlink_rustc_version_mismatch)]
26 pub(crate) struct RLinkRustcVersionMismatch<'a> {
27 pub rustc_version: String,
28 pub current_version: &'a str,
31 #[derive(SessionDiagnostic)]
32 #[diag(driver::rlink_no_a_file)]
33 pub(crate) struct RlinkNotAFile;