Files
rust/tests
Samuel Tardieu 18a4108bf2 Fix the compile-test tests when setting Cargo's build.build-dir setting to a path that's distinct from target-dir (#16568)
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
2026-02-14 22:07:22 +00:00
..