diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-31 15:36:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 15:36:30 +0200 |
| commit | 75dfe1e63dad4f6205fc6db430c49dcec293c3e1 (patch) | |
| tree | 5b6a762159c1f50d1a11fc26093487d7cadaa570 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 563f938ab30ce2d3dbebadbde9c8ad32d2452f78 (diff) | |
| parent | e0af3c61cd5b90e53c720246f40bf47e97429aa2 (diff) | |
| download | rust-75dfe1e63dad4f6205fc6db430c49dcec293c3e1.tar.gz rust-75dfe1e63dad4f6205fc6db430c49dcec293c3e1.zip | |
Rollup merge of #127830 - tgross35:archive-failure-message, r=BoxyUwU
When an archive fails to build, print the path
Currently the output on failure is as follows:
Compiling block-buffer v0.10.4
Compiling crypto-common v0.1.6
Compiling digest v0.10.7
Compiling sha2 v0.10.8
Compiling xz2 v0.1.7
error: failed to build archive: No such file or directory
error: could not compile `bootstrap` (lib) due to 1 previous error
Change this to print which file is being constructed, to give some hint about what is going on.
error: failed to build archive at `path/to/output`: No such file or directory
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index 46d7cfe87e6..2d1eae630cf 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -500,6 +500,7 @@ pub struct UnableToWriteDebuggerVisualizer { #[derive(Diagnostic)] #[diag(codegen_ssa_rlib_archive_build_failure)] pub struct RlibArchiveBuildFailure { + pub path: PathBuf, pub error: Error, } @@ -557,6 +558,7 @@ pub struct UnsupportedLinkSelfContained; #[diag(codegen_ssa_archive_build_failure)] // Public for rustc_codegen_llvm::back::archive pub struct ArchiveBuildFailure { + pub path: PathBuf, pub error: std::io::Error, } |
