bors 947516f018 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
2020-10-09 16:46:09 +00:00
..
2020-09-30 23:30:49 +02:00
2020-10-02 11:34:14 -07:00
2020-10-02 11:34:14 -07:00
2020-10-05 12:23:01 +02:00
2020-09-26 23:10:25 +09:00
2020-10-08 01:07:00 +02:00
2020-10-03 00:07:56 +02:00
2020-10-03 00:07:56 +02:00