Tests assumes the location of build artifacts
You can reproduce this by running either:
$ cargo +nightly test -Zbuild-dir-new-layout
$ CARGO_BUILD_BUILD_DIR=build cargo test
Move the tests and possibly upgrade the underlying testing library (assert_cmd, snapbox, etc). If manually implementing binary lookup and needing to update the implementation, see assert_cmd::cargo::cargo_bin for an example.
This problem was identified by the following crater run: rust-lang/rust#149852
Tests assumes the location of build artifacts
build.build-dir(added as of Cargo 1.91)build-dirlayout (Re-organize build-dir by package + hash, rather than artifact type rust-lang/cargo#15010)build.build-dirdefault (Movebuild-dirout of the workspace tocargo-cache-homeby default rust-lang/cargo#16147)You can reproduce this by running either:
Move the tests and possibly upgrade the underlying testing library (assert_cmd, snapbox, etc). If manually implementing binary lookup and needing to update the implementation, see
assert_cmd::cargo::cargo_binfor an example.This problem was identified by the following crater run: rust-lang/rust#149852