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

redundant_closure_for_method_calls fixes #4191

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

g-bartoszek
Copy link

lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)

changelog: none

@g-bartoszek
Copy link
Author

fixes #3942

@flip1995
Copy link
Member

What's the reasoning behind the mutability change?

Could you rebase this onto master and squash some commits?

$ git fetch upstream # upstream is this repo
$ git rebase -i upstream/master

@g-bartoszek
Copy link
Author

@flip1995
There is no separate ticket for the mutability issue but it was mentioned here #4002 (comment). Maybe fixing two things in one PR was not the best idea.

@g-bartoszek g-bartoszek force-pushed the redundant-closure-deref branch from 01b6833 to 3a92723 Compare June 11, 2019 08:24
@g-bartoszek g-bartoszek reopened this Jun 11, 2019
@flip1995
Copy link
Member

Ah, thanks for the insight.

LGTM. Can you squash the commit 3a92723? That seems kind of pointless.

@g-bartoszek g-bartoszek force-pushed the redundant-closure-deref branch from 3a92723 to 25631ce Compare June 12, 2019 06:36
@flip1995
Copy link
Member

Can you remove the file tests/ui/eta.stdout? Sorry I missed that on the last review...

@flip1995 flip1995 added the S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) label Jun 12, 2019
lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)
@g-bartoszek g-bartoszek force-pushed the redundant-closure-deref branch from 25631ce to d4ad23b Compare June 12, 2019 11:43
@g-bartoszek
Copy link
Author

Done. I missed it too.

@flip1995
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Jun 12, 2019

📌 Commit d4ad23b has been approved by flip1995

@bors
Copy link
Contributor

bors commented Jun 12, 2019

⌛ Testing commit d4ad23b with merge cefddf7...

bors added a commit that referenced this pull request Jun 12, 2019
redundant_closure_for_method_calls fixes

lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [ ] Followed [lint naming conventions][lint_naming]
- [ ] Added passing UI tests (including committed `.stderr` file)
- [ ] `cargo test` passes locally
- [ ] Executed `util/dev update_lints`
- [ ] Added lint documentation
- [ ] Run `cargo fmt`

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

changelog: none
@bors
Copy link
Contributor

bors commented Jun 12, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: flip1995
Pushing cefddf7 to master...

@bors bors merged commit d4ad23b into rust-lang:master Jun 12, 2019
@g-bartoszek g-bartoszek deleted the redundant-closure-deref branch June 12, 2019 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants