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

Move unneeded_field_pattern to restriction group #5200

Merged
merged 1 commit into from
Feb 21, 2020

Conversation

nipunn1313
Copy link
Contributor

@nipunn1313 nipunn1313 commented Feb 20, 2020

Fixes #1741

changelog: Move unneeded_field_pattern to pedantic group

CHANGELOG.md Outdated
Comment on lines 11 to 12
* Move `unneeded_field_pattern` to pedantic group [#1741](https://github.com/rust-lang/rust-clippy/issues/1741)

Copy link
Member

Choose a reason for hiding this comment

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

You don't need to update CHANGELOG in this PR, it's usually updated in release time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sgtm! Updated w/o this change.

@nipunn1313 nipunn1313 force-pushed the unneeded_field_pattern branch from 11ab30c to dd8f641 Compare February 20, 2020 05:42
@@ -25,7 +25,7 @@ declare_clippy_lint! {
/// let { a: _, b: ref b, c: _ } = ..
/// ```
pub UNNEEDED_FIELD_PATTERN,
style,
pedantic,
Copy link
Member

Choose a reason for hiding this comment

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

I agree with @gnzlbg , that this should probably even be a restriction lint, so that you have to opt-in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can make that change if you request it.

Pedantic is described as

`clippy::pedantic` (lints which are rather strict, off by default)

Restriction is described as

The [lint list](https://rust-lang.github.io/rust-clippy/master/index.html) also contains "restriction lints", which are
for things which are usually not considered "bad", but may be useful to turn on in specific cases. These should be used
very selectively, if at all.

I'll switch it to restriction which seems to match this better.

Copy link
Member

Choose a reason for hiding this comment

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

which are usually not considered "bad"

I think this perfectly matches this lint 👍

@nipunn1313 nipunn1313 force-pushed the unneeded_field_pattern branch from dd8f641 to 78a2507 Compare February 20, 2020 21:20
@nipunn1313 nipunn1313 changed the title Move unneeded_field_pattern to pedantic group Move unneeded_field_pattern to restriction group Feb 20, 2020
@flip1995
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Feb 20, 2020

📌 Commit 78a2507 has been approved by flip1995

@bors
Copy link
Contributor

bors commented Feb 20, 2020

⌛ Testing commit 78a2507 with merge 2205772...

bors added a commit that referenced this pull request Feb 20, 2020
Move unneeded_field_pattern to restriction group

Fixes #1741

changelog: Move unneeded_field_pattern to pedantic group
@flip1995
Copy link
Member

@bors retry

@bors
Copy link
Contributor

bors commented Feb 20, 2020

⌛ Testing commit 78a2507 with merge 282e1cb...

bors added a commit that referenced this pull request Feb 20, 2020
Move unneeded_field_pattern to restriction group

Fixes #1741

changelog: Move unneeded_field_pattern to pedantic group
@bors
Copy link
Contributor

bors commented Feb 20, 2020

💔 Test failed - checks-action_test

@flip1995
Copy link
Member

@bors retry

@bors
Copy link
Contributor

bors commented Feb 21, 2020

⌛ Testing commit 78a2507 with merge 8d5585e...

bors added a commit that referenced this pull request Feb 21, 2020
Move unneeded_field_pattern to restriction group

Fixes #1741

changelog: Move unneeded_field_pattern to pedantic group
@bors
Copy link
Contributor

bors commented Feb 21, 2020

💔 Test failed - checks-action_test

@flip1995 flip1995 added the S-waiting-on-bors Status: The marked PR was approved and is only waiting bors label Feb 21, 2020
@flip1995
Copy link
Member

@bors retry (finally)

@bors
Copy link
Contributor

bors commented Feb 21, 2020

⌛ Testing commit 78a2507 with merge 3fc2419...

@bors
Copy link
Contributor

bors commented Feb 21, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 3fc2419 to master...

@bors bors merged commit 3fc2419 into rust-lang:master Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: The marked PR was approved and is only waiting bors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unneeded_field_pattern
4 participants