diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-02 07:12:10 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-02-02 07:12:10 +0100 |
| commit | 73681323e611972caa9a6107312c9e1f74467545 (patch) | |
| tree | 6cff79e746529671cd84fd79ce9e363490075ac7 /compiler/rustc_driver_impl/src/session_diagnostics.rs | |
| parent | 131f0c6df6777800aa884963bdba0739299cd31f (diff) | |
| download | rust-73681323e611972caa9a6107312c9e1f74467545.tar.gz rust-73681323e611972caa9a6107312c9e1f74467545.zip | |
Rename rustc_driver to rustc_driver_impl
Diffstat (limited to 'compiler/rustc_driver_impl/src/session_diagnostics.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/session_diagnostics.rs | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/session_diagnostics.rs b/compiler/rustc_driver_impl/src/session_diagnostics.rs new file mode 100644 index 00000000000..a7aef9cbc2c --- /dev/null +++ b/compiler/rustc_driver_impl/src/session_diagnostics.rs @@ -0,0 +1,67 @@ +use rustc_macros::Diagnostic; + +#[derive(Diagnostic)] +#[diag(driver_rlink_unable_to_read)] +pub(crate) struct RlinkUnableToRead { + pub err: std::io::Error, +} + +#[derive(Diagnostic)] +#[diag(driver_rlink_wrong_file_type)] +pub(crate) struct RLinkWrongFileType; + +#[derive(Diagnostic)] +#[diag(driver_rlink_empty_version_number)] +pub(crate) struct RLinkEmptyVersionNumber; + +#[derive(Diagnostic)] +#[diag(driver_rlink_encoding_version_mismatch)] +pub(crate) struct RLinkEncodingVersionMismatch { + pub version_array: String, + pub rlink_version: u32, +} + +#[derive(Diagnostic)] +#[diag(driver_rlink_rustc_version_mismatch)] +pub(crate) struct RLinkRustcVersionMismatch<'a> { + pub rustc_version: String, + pub current_version: &'a str, +} + +#[derive(Diagnostic)] +#[diag(driver_rlink_no_a_file)] +pub(crate) struct RlinkNotAFile; + +#[derive(Diagnostic)] +#[diag(driver_unpretty_dump_fail)] +pub(crate) struct UnprettyDumpFail { + pub path: String, + pub err: String, +} + +#[derive(Diagnostic)] +#[diag(driver_ice)] +pub(crate) struct Ice; + +#[derive(Diagnostic)] +#[diag(driver_ice_bug_report)] +pub(crate) struct IceBugReport<'a> { + pub bug_report_url: &'a str, +} + +#[derive(Diagnostic)] +#[diag(driver_ice_version)] +pub(crate) struct IceVersion<'a> { + pub version: &'a str, + pub triple: &'a str, +} + +#[derive(Diagnostic)] +#[diag(driver_ice_flags)] +pub(crate) struct IceFlags { + pub flags: String, +} + +#[derive(Diagnostic)] +#[diag(driver_ice_exclude_cargo_defaults)] +pub(crate) struct IceExcludeCargoDefaults; |
