]> git.lizzy.rs Git - rust.git/commit
Auto merge of #6130 - Ambroisie:lint-ptr-eq, r=Manishearth
authorbors <bors@rust-lang.org>
Fri, 9 Oct 2020 16:46:09 +0000 (16:46 +0000)
committerbors <bors@rust-lang.org>
Fri, 9 Oct 2020 16:46:09 +0000 (16:46 +0000)
commit947516f0184a7845577de1f0162f172b89965692
tree61b5a9a9d3bf857ee0188b1d8ac168ee49eeb27d
parentfcf22d90bb9087f03e60c03ccccdc2f95668bf88
parent6edde811b5437f926c26b1b844acd60e3dd0a0c9
Auto merge of #6130 - Ambroisie:lint-ptr-eq, r=Manishearth

New lint: Recommend using `ptr::eq` when possible

This is based almost entirely on the code available in the previous PR #4596. I merely updated the code to make it compile.

Fixes #3661.

- [ ] I'm not sure about the lint name, but it was the one used in the original PR.
- [X] Added passing UI tests (including committed `.stderr` file)
- [X] `cargo test` passes locally
- [X] Executed `cargo dev update_lints`
- [X] Added lint documentation
- [X] Run `cargo dev fmt`

---

changelog: none
CHANGELOG.md
clippy_lints/src/lib.rs
src/lintlist/mod.rs