about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-03 17:29:06 +0200
committerGitHub <noreply@github.com>2023-08-03 17:29:06 +0200
commit7518ae566ef8f0f36f07683e6bbebbd2fa4402d1 (patch)
tree70dfa91e6011b93af9466e122fc6f36c973890b1 /compiler/rustc_mir_transform/src/coverage/debug.rs
parentfcf3006e0133365ecd26894689c086387edcbecb (diff)
parentee519532f69610e208fc61a68537aa662c3e8d16 (diff)
downloadrust-7518ae566ef8f0f36f07683e6bbebbd2fa4402d1.tar.gz
rust-7518ae566ef8f0f36f07683e6bbebbd2fa4402d1.zip
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```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions