Skip to content

Fix swapped stability attributes for rustdoc lints - #75953

Merged
bors merged 1 commit into
rust-lang:masterfrom
jyn514:missing-lints
Aug 27, 2020
Merged

Fix swapped stability attributes for rustdoc lints#75953
bors merged 1 commit into
rust-lang:masterfrom
jyn514:missing-lints

Conversation

@jyn514

@jyn514jyn514 commented Aug 26, 2020

Copy link
Copy Markdown
Member

This fixes a regression introduced in #74855. Previously, missing_doc_code_examples would be run on stable and private_doc_tests would only be run on nightly. Now, it correctly does the reverse.
Closes#75951.
r? @ehuss

@jyn514jyn514 added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-doctests Area: Documentation tests, run by rustdoc labels Aug 26, 2020
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 26, 2020
@jyn514jyn514 changed the title Fix swapped stability attributesFix swapped stability attributes for rustdoc lintsAug 26, 2020
@jyn514

jyn514 commented Aug 26, 2020

Copy link
Copy Markdown
MemberAuthor

@jyn514jyn514 added the A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. label Aug 26, 2020
@jyn514

Copy link
Copy Markdown
MemberAuthor

How do I propose that this be backported to beta? Just add the beta-nominated tag?

@jyn514jyn514 added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Aug 26, 2020
@jyn514

Copy link
Copy Markdown
MemberAuthor

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.
@jyn514

jyn514 commented Aug 26, 2020

Copy link
Copy Markdown
MemberAuthor

As a larger point of discussion I'd like to propose slowly requiring #![feature()] for any nightly features, which would help avoid this sort of thing in the future. But I'm not making any change like that here.

@GuillaumeGomez

Copy link
Copy Markdown
Member

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!

@jyn514

Copy link
Copy Markdown
MemberAuthor

@GuillaumeGomez what do you think about backporting the fix to beta?

@GuillaumeGomez

Copy link
Copy Markdown
Member

If the lint is supposed to be nightly only, I'd prefer that it remains that way, so I agree with the backport.

@Manishearth

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Aug 26, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 29399fa has been approved by Manishearth

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 26, 2020
@jyn514

Copy link
Copy Markdown
MemberAuthor

@Manishearth are you ok with a backport?

@Manishearth

Copy link
Copy Markdown
Member

Yep! Release team may decide to say no but they usually don't.

@jyn514jyn514 added beta-accepted Accepted for backporting to the compiler in the beta channel. and removed beta-nominated Nominated for backporting to the compiler in the beta channel. labels Aug 26, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 27, 2020
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
@bors
bors merged commit c2a0168 into rust-lang:masterAug 27, 2020
@jyn514
jyn514 deleted the missing-lints branch August 27, 2020 03:16
@jyn514jyn514 added beta-nominated Nominated for backporting to the compiler in the beta channel. and removed beta-accepted Accepted for backporting to the compiler in the beta channel. labels Aug 28, 2020
@jyn514jyn514 added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Aug 28, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 28, 2020
[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
```
@Mark-SimulacrumMark-Simulacrum removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 17, 2020
@Mark-SimulacrumMark-Simulacrum added this to the 1.47.0 milestone Sep 17, 2020
@Mark-SimulacrumMark-Simulacrum mentioned this pull request Sep 17, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-doctestsArea: Documentation tests, run by rustdocA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc: private_doc_tests lint no longer fires on stable

7 participants

@jyn514@GuillaumeGomez@Manishearth@bors@ehuss@Mark-Simulacrum@rust-highfive