-
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 swapped stability attributes for rustdoc lints #75953
Conversation
I have no idea how to test this, suggestions appreciated. I also asked in https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20do.20I.20test.20if.20a.20lint.20runs.20on.20stable.20and.20beta.3F and https://discordapp.com/channels/442252698964721669/459149231702278154/748257833010593944. |
How do I propose that this be backported to beta? Just add the |
cc @rust-lang/rustdoc - are you ok with backporting? The fix is pretty simple so I don't see any reason not to other than the missing test. |
This fixes a regression introduced in rust-lang#74855.
As a larger point of discussion I'd like to propose slowly requiring |
You broke my lint? :o Since @Manishearth was the one reviewing the original, I'll let them handle this one as well. Otherwise looks good to me! |
@GuillaumeGomez what do you think about backporting the fix to beta? |
If the lint is supposed to be nightly only, I'd prefer that it remains that way, so I agree with the backport. |
@bors r+ |
📌 Commit 29399fa has been approved by |
@Manishearth are you ok with a backport? |
Yep! Release team may decide to say no but they usually don't. |
Rollup of 10 pull requests Successful merges: - rust-lang#74730 (Hexagon libstd: update type defs) - rust-lang#75758 (Fixes for VxWorks) - rust-lang#75780 (Unconfuse Unpin docs a bit) - rust-lang#75806 (Prevent automatic page change when using history) - rust-lang#75818 (Update docs for SystemTime Windows implementation) - rust-lang#75837 (Fix font color for help button in ayu and dark themes) - rust-lang#75870 (Unify theme choices border color in ayu theme) - rust-lang#75875 (Shorten liballoc vec resize intra-doc link) - rust-lang#75953 (Fix swapped stability attributes for rustdoc lints) - rust-lang#75958 (Avoid function-scoping global variables) Failed merges: r? @ghost
[beta] Backport fix for swapped stability attributes This backports the only commit in rust-lang#75953, fixing one unstable lint which ran on stable and one stable lint which only ran on nightly. This change can be replicated with ``` git fetch origin git checkout origin/beta git cherry-pick 29399fa ```
This fixes a regression introduced in #74855. Previously,
missing_doc_code_examples
would be run on stable andprivate_doc_tests
would only be run on nightly. Now, it correctly does the reverse.Closes #75951.
r? @ehuss