Skip to content

Commit

Permalink
Rollup merge of #113657 - Urgau:expand-incorrect_fn_null_check-lint, …
Browse files Browse the repository at this point in the history
…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 rust-lang/rust#113601
cc ```@est31```
  • Loading branch information
matthiaskrgr authored Aug 3, 2023
2 parents f5eacdd + ff1e280 commit ead694a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit ead694a

Please sign in to comment.