]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/errors.rs
Rollup merge of #104901 - krtab:filetype_compare, r=the8472
[rust.git] / compiler / rustc_codegen_ssa / src / errors.rs
index ade50af0aee8d7dabcc31b835100c55db03f2418..e3b6fbf1bc7f0e1bf07f39e7f6d581d1d8046427 100644 (file)
@@ -534,3 +534,17 @@ pub struct ReadFileError {
 #[derive(Diagnostic)]
 #[diag(codegen_ssa_unsupported_link_self_contained)]
 pub struct UnsupportedLinkSelfContained;
+
+#[derive(Diagnostic)]
+#[diag(codegen_ssa_archive_build_failure)]
+// Public for rustc_codegen_llvm::back::archive
+pub struct ArchiveBuildFailure {
+    pub error: std::io::Error,
+}
+
+#[derive(Diagnostic)]
+#[diag(codegen_ssa_unknown_archive_kind)]
+// Public for rustc_codegen_llvm::back::archive
+pub struct UnknownArchiveKind<'a> {
+    pub kind: &'a str,
+}