Fix unreachable_pub suggestion for enum with fields#103338
Fix unreachable_pub suggestion for enum with fields#103338bors merged 2 commits intorust-lang:masterfrom
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