mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
f5ff6d5ae5
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. :) |
||
---|---|---|
.. | ||
auxiliary | ||
const-bool-bitcast.rs | ||
duplicated-path-in-error.rs | ||
duplicated-path-in-error.stderr | ||
freeze-on-polymorphic-projection.rs | ||
freeze-on-polymorphic-projection.stderr | ||
init-large-type.rs | ||
issue-16602-1.rs | ||
issue-16602-2.rs | ||
issue-16602-3.rs | ||
issue-27859.rs | ||
issue-28950.rs | ||
issue-55976.rs | ||
issue-63787.rs | ||
issue-64401.rs | ||
issue-79865-llvm-miscompile.rs | ||
issue-82833-slice-miscompile.rs | ||
issue-82859-slice-miscompile.rs | ||
issue-88043-bb-does-not-have-terminator.rs | ||
issue-97708.rs | ||
issue-99551.rs | ||
issue-101585-128bit-repeat.rs | ||
llvm-pr32379.rs | ||
mismatched-data-layout.json | ||
mismatched-data-layouts.rs | ||
mismatched-data-layouts.stderr | ||
mono-impossible-2.rs | ||
mono-impossible.rs | ||
overflow-during-mono.rs | ||
overflow-during-mono.stderr | ||
subtyping-enforces-type-equality.rs | ||
subtyping-impacts-selection-1.rs | ||
subtyping-impacts-selection-2.rs | ||
target-cpus.rs | ||
target-cpus.stdout |