Matthias Krüger 7518ae566e
Rollup merge of #113657 - Urgau:expand-incorrect_fn_null_check-lint, r=cjgillot
Expand, rename and improve `incorrect_fn_null_checks` lint

This PR,

 - firstly, expand the lint by now linting on references
 - secondly, it renames the lint `incorrect_fn_null_checks` -> `useless_ptr_null_checks`
 - and thirdly it improves the lint by catching `ptr::from_mut`, `ptr::from_ref`, as well as `<*mut _>::cast` and `<*const _>::cast_mut`

Fixes https://github.com/rust-lang/rust/issues/113601
cc ```@est31```
2023-08-03 17:29:06 +02:00
..
2023-06-06 11:50:24 +02:00
2023-04-21 02:45:48 -07:00
2023-04-27 17:18:11 +00:00
2023-02-23 13:57:13 +03:00
2023-03-29 09:56:28 +08:00
2023-03-29 09:56:28 +08:00
2023-03-29 09:56:28 +08:00
2023-07-23 09:58:31 +00:00
2023-07-23 09:58:31 +00:00
2023-07-23 09:58:31 +00:00
2023-07-23 09:58:31 +00:00
2023-07-23 09:58:31 +00:00
2023-06-11 18:27:26 +08:00