diff options
| author | Adrian Tombu <adrian@otso.fr> | 2022-08-24 14:12:39 +0200 |
|---|---|---|
| committer | Adrian Tombu <adrian@otso.fr> | 2022-08-25 18:06:12 +0200 |
| commit | 1c575c5fe05110a628a7bf0e609602bb9066edec (patch) | |
| tree | 5499a0c5042eb960a04a66f5ad8573f6b93d92f6 /compiler/rustc_driver/src/session_diagnostics.rs | |
| parent | e7ded9246c12319330c39b3ab10162935ccbfe17 (diff) | |
| download | rust-1c575c5fe05110a628a7bf0e609602bb9066edec.tar.gz rust-1c575c5fe05110a628a7bf0e609602bb9066edec.zip | |
Use std::io::Error and remove useless to_string
Diffstat (limited to 'compiler/rustc_driver/src/session_diagnostics.rs')
| -rw-r--r-- | compiler/rustc_driver/src/session_diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver/src/session_diagnostics.rs b/compiler/rustc_driver/src/session_diagnostics.rs index ed10a66c823..a5dbef45475 100644 --- a/compiler/rustc_driver/src/session_diagnostics.rs +++ b/compiler/rustc_driver/src/session_diagnostics.rs @@ -3,7 +3,7 @@ use rustc_macros::SessionDiagnostic; #[derive(SessionDiagnostic)] #[diag(driver::rlink_unable_to_read)] pub(crate) struct RlinkUnableToRead { - pub error_message: String, + pub err: std::io::Error, } #[derive(SessionDiagnostic)] @@ -14,4 +14,4 @@ pub(crate) struct RlinkUnableToDeserialize { #[derive(SessionDiagnostic)] #[diag(driver::rlink_no_a_file)] -pub(crate) struct RlinkNotAFile {} +pub(crate) struct RlinkNotAFile; |
