mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

fix: reorder `--remap-path-prefix` flags for `-Zbuild-std` ### What does this PR try to resolve? Order of `--remap-path-prefix` flags is important for `-Zbuild-std`. We want to show `/rustc/<hash>/library/std` instead of `std-0.0.0`. Fixes rust-lang/rust#117839 ### How should we test and review this PR? Follow the steps in rust-lang/rust#117839, or run ``` CARGO_RUN_BUILD_STD_TESTS=true cargo +nightly t --test build-std ``` to verify.