-
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
Fix unreachable_pub suggestion for enum with fields #103338
Conversation
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
r? compiler |
Doing a quick first pass, will take a closer look later this week. Would it make sense to also add a I would even consider adding a test without |
Ooh, there are tests for rustfix, that's really nice, will add one.
You mean adding an additional one for run-rustfix, right? There are a lot of warnings for cargo-check (check-pass). |
Added .fixed file for the same test and put |
Yeah, but upon further review I don’t believe that’s necessary at all. @bors r+ Thanks! (Side note: it is quite unfortunate that the lint callback infrastructure requires us to figure if a field belongs to an enum variant after the fact, rather than allowing to just change this entire visitor to skip walking enums in the first place. Welp.) |
Rollup of 5 pull requests Successful merges: - rust-lang#103338 (Fix unreachable_pub suggestion for enum with fields) - rust-lang#103603 (Lang item cleanups) - rust-lang#103732 (Revert "Make the `c` feature for `compiler-builtins` opt-in instead of inferred") - rust-lang#103766 (Add tracking issue to `error_in_core`) - rust-lang#103789 (Update E0382.md) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Resolves #103317