-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep environment variables in a BTreeMap to preserve sort order #7877
Conversation
This prevents verbose output from varying between runs due to HashMap (non-)ordering.
r? @ehuss (rust_highfive has picked a reviewer for you, use r? to override) |
This seems fine by me, but isn't the output already nondeterministic due to parallelism? I'm curious why we'd want this part to be deterministic but not the whole thing? |
The order of multiple rustc invocations isn't deterministic, but this makes the individual rustc command lines deterministic, which makes them easier to compare. I was trying to figure out what changed in the rustc command lines between two invocations, and this change made it much easier to do so. |
Seems good to me. |
@bors r+ |
📌 Commit e84a4ed has been approved by |
Keep environment variables in a BTreeMap to preserve sort order This prevents verbose output from varying between runs due to HashMap (non-)ordering.
☀️ Test successful - checks-azure |
Update cargo 9 commits in 3c53211c3d7fee4f430f170115af5baad17a3da9..e02974078a692d7484f510eaec0e88d1b6cc0203 2020-02-07 15:35:03 +0000 to 2020-02-18 15:24:43 +0000 - Set an environment variable for tests to find executables. (rust-lang/cargo#7697) - Rework internal errors. (rust-lang/cargo#7896) - Improvements to StringList config handling. (rust-lang/cargo#7891) - Add new/old rustflags to fingerprint log. (rust-lang/cargo#7890) - Fix inaccurate doc comment on `env_args`. (rust-lang/cargo#7889) - Add some extra fingerprint debug information. (rust-lang/cargo#7888) - Link the licenses into crates/cargo-platform (rust-lang/cargo#7886) - Modify test to make `rustc` PR mergeable (rust-lang/cargo#7883) - Keep environment variables in a BTreeMap to preserve sort order (rust-lang/cargo#7877)
This prevents verbose output from varying between runs due to HashMap
(non-)ordering.