Skip to content
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

Make bad_style a silent alias for nonstandard_style #54251

Merged
merged 3 commits into from
Oct 16, 2018

Conversation

varkor
Copy link
Member

@varkor varkor commented Sep 15, 2018

Now only nonstandard_style is suggested in rustc -W help, but bad_style will not produce a warning. Closes #41646.

r? @Manishearth

Now only `nonstandard_style` is suggested in `rustc -W help`, but `bad_style` will not produce a warning.
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 15, 2018
@Manishearth
Copy link
Member

Looks good!

Perhaps add a test?

r=me either way

@rust-highfive

This comment has been minimized.

lint_groups: FxHashMap<&'static str, (Vec<LintId>, bool, Option<&'static str>)>,
/// is used to store the new names of deprecated lint group names and is paired
/// with `true` if the deprecation is silent.
lint_groups: FxHashMap<&'static str, (Vec<LintId>, bool, Option<(&'static str, bool)>)>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I have no stake in this code so feel free to ignore me, but these tuples seem excessive. Wouldn't it be nicer to have a struct with named fields?

@Manishearth
Copy link
Member

Manishearth commented Sep 15, 2018 via email

@varkor
Copy link
Member Author

varkor commented Sep 24, 2018

@Manishearth: I did a little refactoring — could you double-check that everything looks fine?

@TimNN
Copy link
Contributor

TimNN commented Oct 16, 2018

Ping from triage @Manishearth / @rust-lang/compiler: This PR requires your review.

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 16, 2018

📌 Commit 15ecd19 has been approved by Manishearth

@bors bors 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, 2018
@bors
Copy link
Contributor

bors commented Oct 16, 2018

⌛ Testing commit 15ecd19 with merge 8a7048b...

bors added a commit that referenced this pull request Oct 16, 2018
Make `bad_style` a silent alias for `nonstandard_style`

Now only `nonstandard_style` is suggested in `rustc -W help`, but `bad_style` will not produce a warning. Closes #41646.

r? @Manishearth
@bors
Copy link
Contributor

bors commented Oct 16, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Manishearth
Pushing 8a7048b to master...

@bors bors merged commit 15ecd19 into rust-lang:master Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: 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.

None yet

6 participants