mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
18a4108bf2
Fixes rust-lang/rust-clippy#16567. Fix the compile-test tests when Cargo's `build.build-dir` is set to a path that's distinct from `target-dir`. Right now, the uitest harness assumes that `clippy-driver` (a final build artifact) is located in the parent directory of `compile_test-…` (an intermediate artifact or, rather, a dependency's final artifact), and that doesn't hold when `build-dir` is configured independently from `target-dir`, like so (in ~/.cargo/config.toml): ```toml [build] build-dir = "{cargo-cache-home}/build-artifacts/{workspace-path-hash}" ``` changelog: none