Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #14212 - ehuss:fix-compatible_with_older_cargo, r=epage
Fix compatible_with_older_cargo test. This fixes the `global_cache_tracker::compatible_with_older_cargo` test which is failing with the latest nightly, with the following error: ``` thread 'main' panicked at src/cargo/core/compiler/fingerprint/mod.rs:1834:9: assertion `left == right` failed left: "0b455c154b949b0d" right: "ce6d4698ea4438f2" ``` The problem is that it was running stable `cargo` from CARGO_HOME, but was always using nightly `rustc`. The assertion was triggering because it was reusing the same fingerprint file between stable and nightly, but the Hash impl changed in nightly via rust-lang/rust#127297. Under normal circumstances, when switching between toolchains, the hash should change ensuring the toolchains each use a separate directory. The fix here is to ensure that when running stable cargo that it also uses stable rustc. This helps ensure that the hashes between cargo invocations changes, and they use separate directories.
- Loading branch information