diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-05 19:53:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 19:53:22 +0100 |
| commit | f5ff6d5ae5ad15fc2e869c0db6d496b34a92f24e (patch) | |
| tree | 50696d53e0415ac0597aa7b379f2cd6a84cead30 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | f560806ae072a764c2b9957d256c1993bd3f5c01 (diff) | |
| parent | 5e6e140b0cf44079cd0f42ba8bfcbf874859dd68 (diff) | |
| download | rust-f5ff6d5ae5ad15fc2e869c0db6d496b34a92f24e.tar.gz rust-f5ff6d5ae5ad15fc2e869c0db6d496b34a92f24e.zip | |
Rollup merge of #121978 - GuillaumeGomez:dylib-duplicated-path, r=bjorn3
Fix duplicated path in the "not found dylib" error
While working on the gcc backend, I couldn't figure out why I had this error:
```
error: couldn't load codegen backend /checkout/compiler/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so/checkout/compiler/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so: cannot open shared object file: No such file or directory
```
As you can see, the path is duplicated for some reason. After investigating a bit more, I realized that `libloading::Error::LoadLibraryExW` starts with the path of the not found dylib, making it appear twice in our error afterward (because we do render it like this: `{path}{err}`, and since the `err` starts with the path...).
Thanks to `````@bjorn3````` for linking me to https://github.com/rust-lang/rust/pull/121392. :)
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
