[crater experiment] lint against Struct { .. } when Struct has all private fields - #159356
[crater experiment] lint against Struct { .. } when Struct has all private fields#159356Jules-Bertholet wants to merge 3 commits into
Struct { .. } when Struct has all private fields#159356Conversation
…l private fields
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Please describe what kind of crater run do you need: https://rustc-dev-guide.rust-lang.org/tests/crater.html#requesting-crater-runs @bors try |
This comment has been minimized.
This comment has been minimized.
[crater experiment] lint against `Struct { .. }` when `Struct` has all private fields
|
Yes, check-only |
|
💔 Test for 86531a3 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
|
@Jules-Bertholet the toolchain must be buildable to run crater. |
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[crater experiment] lint against `Struct { .. }` when `Struct` has all private fields
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Test failures don't matter for crater, it just needs to build |
|
Oh, sorry. My bad. @craterbot check |
|
🚨 Error: missing start toolchain 🆘 If you have any trouble with Crater please ask in t-infra on Zulip |
|
Oh whoops. I need to wait for the try build to finish first. Duh. |
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
☔ The latest upstream changes (presumably #160238) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
View all comments
Draft as this is just a Crater experiment, and should not be merged.
Deny-by-default lint on
Struct { .. }patterns whereStructhas only fields not visible from the location of the pattern (if it has no fields, it must be from a foreign crate and#[non_exhaustive]). This is to gather data to inform rust-lang/rfcs#3753.@rustbot label A-patterns T-lang
@rustbot ready
r? compiler