bors a6b72d378f Auto merge of #6542 - rail-rain:ptr_as_ptr, r=flip1995
Add a new lint `ptr_as_ptr`

This PR adds a new lint `ptr_as_ptr` which checks for `as` casts between raw pointers without changing its mutability and suggest replacing it with `pointer::cast`. Closes #5890.

Open question: should this lint be `pedantic` or `style`? I set it `pedantic` for now because the original post suggests using it, but I think the lint also fits well to `style`.

---

changelog: New lint `ptr_as_ptr`
2021-01-05 09:54:34 +00:00
..
2021-01-02 14:15:11 -05:00
2021-01-02 14:15:11 -05:00
2021-01-02 14:15:11 -05:00
2020-12-19 17:00:40 +01:00
2020-12-19 17:00:40 +01:00
2020-12-19 17:00:40 +01:00
2020-12-19 17:00:40 +01:00
2021-01-02 11:08:56 -05:00
2021-01-02 11:08:56 -05:00