-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
make mem::Discriminant
invariant
#71814
Conversation
r? @shepmaster (rust_highfive has picked a reviewer for you, use r? to override) |
Why is this a "do not merge" experiment? Seems perfectly fine for me to land this first (after crater it happy). Smaller incremental changes are usually better than landing them all at once. :) @bors try |
⌛ Trying commit 30d9462055452393a73eae5b52dee2cfe131734a with merge d027640e8e31338d002dd0c57ffd1e6d0c16834f... |
We still don't want to land this before the crater run, do we 😆 |
Sure, but "DO NOT MERGE" is usually for PRs that we do not want to merge period (say, CI experiments). If it just needs a crater run, no need to use all-caps, I'll just set the appropriate label. |
Ah, CI shows that
Maybe use |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☀️ Try build successful - checks-azure |
mem::Discriminant
invariantmem::Discriminant
invariant
30d9462
to
57c4db3
Compare
Changed it to |
@bors try |
⌛ Trying commit 57c4db3 with merge 5fae8f15a4dcfce640ee800a4d495673524b0a4d... |
☀️ Try build successful - checks-azure |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
and
Seem to be contradictory points? |
Sorry, I meant after a crater run and with team approval. It seems very unlikely that anyone relies on this being covariant. |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
mem::Discriminant
is currently covariant over T.#70705 changes this to invariant, which is a breaking change.
This PR can be used for a crater run to check if more crates than expected depend on the variance of
Discriminant
, recommended in #70705 (comment)cc @RalfJung @eddyb
Example breakage: