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

Split redundant_closure lint #4101

Merged
merged 4 commits into from May 16, 2019
Merged

Split redundant_closure lint #4101

merged 4 commits into from May 16, 2019

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2019

Move the method checking into a new lint called
redundant_closures_for_method_calls and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from redundant_closure to a new pedantic lint called redundant_closure_for_method_calls.

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942
@ghost
Copy link
Author

ghost commented May 16, 2019

I'm not sure if we actually decided to do this but it was mentioned as a possibility by @Manishearth in #3942 (comment) .

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

r+, unsure if the name should be so long. Also I'd like another person to verify we want this (@flip1995, @matthiaskrgr?)

@flip1995
Copy link
Member

flip1995 commented May 16, 2019

I think splitting those lints is the correct thing to do. There are too many FPs and annoyances that aren't trivial to fix. I would add to the changelog, that the new lint is in the pedantic group though. "to a new lint" -> "to a new pedantic lint"


As for the name: I can't come up with a shorter name. But I would keep the singular form from the previous lint: redundant_closures_for_method_calls

@Manishearth
Copy link
Member

We might want to beta backport this

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented May 16, 2019

📌 Commit f1f1940 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented May 16, 2019

⌛ Testing commit f1f1940 with merge d0b0a3c...

bors added a commit that referenced this pull request May 16, 2019
…=Manishearth

Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from `redundant_closure` to a new `pedantic` lint called `redundant_closures_for_method_calls`.
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented May 16, 2019

📌 Commit 373d270 has been approved by Manishearth

bors added a commit that referenced this pull request May 16, 2019
…=Manishearth

Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from `redundant_closure` to a new `pedantic` lint called `redundant_closure_for_method_calls`.
@bors
Copy link
Collaborator

bors commented May 16, 2019

⌛ Testing commit 373d270 with merge b30f8fd...

@Manishearth
Copy link
Member

We may want to beta backport this so it's in the stable release next week. This will probably have to be rewritten from scratch, though.

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented May 16, 2019

📌 Commit ce63f3a has been approved by Manishearth

bors added a commit that referenced this pull request May 16, 2019
…=Manishearth

Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from `redundant_closure` to a new `pedantic` lint called `redundant_closure_for_method_calls`.
@bors
Copy link
Collaborator

bors commented May 16, 2019

⌛ Testing commit ce63f3a with merge aa3eb07...

Manishearth added a commit to Manishearth/rust-clippy that referenced this pull request May 16, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
@bors
Copy link
Collaborator

bors commented May 16, 2019

💔 Test failed - status-appveyor

@flip1995
Copy link
Member

@bors r=Manishearth

@bors
Copy link
Collaborator

bors commented May 16, 2019

📌 Commit 08d2a0d has been approved by Manishearth

bors added a commit that referenced this pull request May 16, 2019
…=Manishearth

Split redundant_closure lint

Move the method checking into a new lint called
`redundant_closures_for_method_calls` and put it in the pedantic group.

This aspect of the lint seems more controversial than the rest.

cc #3942

changelog: Move method checking from `redundant_closure` to a new `pedantic` lint called `redundant_closure_for_method_calls`.
@bors
Copy link
Collaborator

bors commented May 16, 2019

⌛ Testing commit 08d2a0d with merge 11194e3...

@bors
Copy link
Collaborator

bors commented May 16, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Manishearth
Pushing 11194e3 to master...

@bors bors merged commit 08d2a0d into rust-lang:master May 16, 2019
Manishearth added a commit to Manishearth/rust-clippy that referenced this pull request May 16, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
Manishearth added a commit to Manishearth/rust-clippy that referenced this pull request May 17, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
Manishearth added a commit to Manishearth/rust-clippy that referenced this pull request May 17, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
flip1995 pushed a commit to Manishearth/rust-clippy that referenced this pull request May 17, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
oli-obk pushed a commit to Manishearth/rust-clippy that referenced this pull request May 17, 2019
rust-lang#4101

Splits up redundant_closure's method checking into a pedantic lint
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
bors added a commit that referenced this pull request May 17, 2019
Backport #4101 to beta

This lint has been causing lots of problems.

I'll check up on other potential beta backports when I build the new changelog

r? @oli-obk
Manishearth added a commit to Manishearth/rust that referenced this pull request May 17, 2019
@ghost ghost deleted the redundant_closures_for_method_calls branch May 18, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants