about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/errors.rs
diff options
context:
space:
mode:
authorDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-10-16 17:05:53 +0300
committerDaniil Belov <70999565+BelovDV@users.noreply.github.com>2022-11-14 12:01:49 +0300
commite16c77847decf7bcfc4db8f0ac9be7b3059ce64c (patch)
tree8878164499b7803736ed57246540294ee1c46526 /compiler/rustc_codegen_ssa/src/errors.rs
parent9b735a7132acd58b3bd34c084e9ca5b4ca7450a2 (diff)
downloadrust-e16c77847decf7bcfc4db8f0ac9be7b3059ce64c.tar.gz
rust-e16c77847decf7bcfc4db8f0ac9be7b3059ce64c.zip
Wrap bundlen static libraries into object files
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/errors.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs
index 36c94462b0b..bfc4515de09 100644
--- a/compiler/rustc_codegen_ssa/src/errors.rs
+++ b/compiler/rustc_codegen_ssa/src/errors.rs
@@ -507,6 +507,9 @@ pub enum ExtractBundledLibsError<'a> {
 
     #[diag(codegen_ssa_extract_bundled_libs_write_file)]
     WriteFile { rlib: &'a Path, error: Box<dyn std::error::Error> },
+
+    #[diag(codegen_ssa_extract_bundled_libs_write_file)]
+    ExtractSection { rlib: &'a Path, error: Box<dyn std::error::Error> },
 }
 
 #[derive(Diagnostic)]
@@ -521,3 +524,9 @@ pub enum AppleSdkRootError<'a> {
     #[diag(codegen_ssa_apple_sdk_error_sdk_path)]
     SdkPath { sdk_name: &'a str, error: Error },
 }
+
+#[derive(Diagnostic)]
+#[diag(codegen_ssa_read_file)]
+pub struct ReadFileError {
+    pub message: std::io::Error,
+}