-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Change the type of AssertModuleSource::available_cgus
.
#75210
Change the type of AssertModuleSource::available_cgus
.
#75210
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Does it affect the build reproducibility? |
#65657 changed the |
It's currently a `BTreeSet<Symbol>`, which is a strange type. The `BTreeSet` suggests that element order is important, but `Symbol` is a type whose ordering isn't useful to humans. The ordering of the collection only manifests in an obscure error message ("no module named `...`") that doesn't appear in any tests. This commit changes the `Symbol` to a `String`, which is more typical.
f1aa8af
to
ebbf07a
Compare
I have changed it to a |
@bors r+ rollup |
📌 Commit ebbf07a has been approved by |
Rollup of 12 pull requests Successful merges: - rust-lang#74888 (compiletest: ignore-endian-big, fixes rust-lang#74829, fixes rust-lang#74885) - rust-lang#75175 (Make doctests of Ipv4Addr::from(u32) easier to read) - rust-lang#75179 (Remove unused FromInner impl for Ipv4Addr) - rust-lang#75181 (Fix typo in `librustc_feature/active.rs`) - rust-lang#75183 (Label rustfmt toolstate issues with A-rustfmt) - rust-lang#75188 (Handle fieldless tuple structs in diagnostic code) - rust-lang#75190 (Clean up E0746 explanation) - rust-lang#75210 (Change the type of `AssertModuleSource::available_cgus`.) - rust-lang#75211 (Note about endianness of returned value of {integer}::from_be_bytes and friends) - rust-lang#75217 (Clean up E0747 explanation) - rust-lang#75232 (Fix typo "TraitObligatiom" -> "TraitObligation") - rust-lang#75236 (Fix typo "biset" -> "bitset") Failed merges: r? @ghost
It's currently a
BTreeSet<Symbol>
, which is a strange type. TheBTreeSet
suggests that element order is important, butSymbol
is atype whose ordering isn't useful to humans. The ordering of the
collection only manifests in an obscure error message ("no module named
...
") that doesn't appear in any tests.This commit changes the
Symbol
to aString
, which is moretypical.