diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-28 10:43:51 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-11-26 19:35:32 +0000 |
| commit | be6708428fdf6693188e2c2f10f05d1b1aaa5750 (patch) | |
| tree | d4a02ed59895692fe4ade067fceb1c92575e3bb3 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | c3a1c023c0784ffbcf4dd57cf4618d208bccae69 (diff) | |
| download | rust-be6708428fdf6693188e2c2f10f05d1b1aaa5750.tar.gz rust-be6708428fdf6693188e2c2f10f05d1b1aaa5750.zip | |
Rewrite LLVM's archive writer in Rust
This allows it to be used by other codegen backends
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index ade50af0aee..e3b6fbf1bc7 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -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, +} |
