about summary refs log tree commit diff
path: root/compiler/rustc_driver/src/session_diagnostics.rs
diff options
context:
space:
mode:
authorAdrian Tombu <adrian@otso.fr>2022-08-24 14:12:39 +0200
committerAdrian Tombu <adrian@otso.fr>2022-08-25 18:06:12 +0200
commit1c575c5fe05110a628a7bf0e609602bb9066edec (patch)
tree5499a0c5042eb960a04a66f5ad8573f6b93d92f6 /compiler/rustc_driver/src/session_diagnostics.rs
parente7ded9246c12319330c39b3ab10162935ccbfe17 (diff)
downloadrust-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.rs4
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;