about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-25 18:13:47 +0000
committerbors <bors@rust-lang.org>2019-04-25 18:13:47 +0000
commit910d538ef1f643334974aa0c2f45ff44a74d92b1 (patch)
treed58d92b9b070eb7bc1eea9e6150293f6618515c2 /src/test/incremental/thinlto
parent6a0105e59f6b07236f894e4f4bdf05a9592d93c1 (diff)
parent4f801a278dc4ed68ef209f07fece4d8b8e99fbeb (diff)
downloadrust-910d538ef1f643334974aa0c2f45ff44a74d92b1.tar.gz
rust-910d538ef1f643334974aa0c2f45ff44a74d92b1.zip
Auto merge of #4008 - g-bartoszek:boxed-fnmut, r=phansch
Do not trigger redundant_closure for non-function types

fixes #3898

Added a check for the entity being called in the closure body to be a FnDef. This way lint does not trigger for ADTs (Box) but I'm not sure if it's correct and not too restrictive.

<!--
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: Fix false positive in `redundant_closure` pertaining to non-function types
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions