Skip to content

Suggest minimal subset features in incomplete_features lint - #77925

Merged
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:sugg-min-features
Oct 16, 2020
Merged

Suggest minimal subset features in incomplete_features lint#77925
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:sugg-min-features

Conversation

@JohnTitor

Copy link
Copy Markdown
Member

This tells users that we have a minimal subset feature of it and they can fix the lint warning without allowing it.
The wording improvement is helpful :)

Fixes#77913

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @davidtwco

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 13, 2020

@davidtwcodavidtwco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I like this change but I'm slightly unsure on the exact wording (cc @rust-lang/wg-diagnostics). r=me after a little bikeshedding.

Comment threadcompiler/rustc_lint/src/builtin.rs Outdated
@JohnTitor

Copy link
Copy Markdown
MemberAuthor

Applied the suggestion from @oli-obk.
@bors r=davidtwco,oli-obk

@bors

bors commented Oct 16, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit f7150be has been approved by davidtwco,oli-obk

@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 Oct 16, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 16, 2020
…dtwco,oli-obk
Suggest minimal subset features in `incomplete_features` lint
This tells users that we have a minimal subset feature of it and they can fix the lint warning without allowing it.
The wording improvement is helpful :)
Fixesrust-lang#77913
@JohnTitorJohnTitor mentioned this pull request Oct 16, 2020
@JohnTitorJohnTitor mentioned this pull request Oct 16, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 16, 2020
Rollup of 10 pull requests
Successful merges:
- rust-lang#75209 (Suggest imports of unresolved macros)
- rust-lang#77547 (stabilize union with 'ManuallyDrop' fields and 'impl Drop for Union')
- rust-lang#77827 (Don't link to nightly primitives on stable channel)
- rust-lang#77855 (resolve: further improvements to "try using the enum's variant" diagnostic)
- rust-lang#77900 (Use fdatasync for File::sync_data on more OSes)
- rust-lang#77925 (Suggest minimal subset features in `incomplete_features` lint)
- rust-lang#77971 (Deny broken intra-doc links in linkchecker)
- rust-lang#77991 (Bump backtrace-rs)
- rust-lang#77992 (instrument-coverage: try our best to not ICE)
- rust-lang#78013 (Fix sidebar scroll on mobile devices)
Failed merges:
r? `@ghost`
@bors
bors merged commit 9600fda into rust-lang:masterOct 16, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 16, 2020
@JohnTitor
JohnTitor deleted the sugg-min-features branch October 16, 2020 22:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest #[feature(min_specialization)] instead of #[feature(specialization)] when user attempts to use it

6 participants

@JohnTitor@rust-highfive@bors@oli-obk@davidtwco@rustbot