Closed
Description
rust-lang/rust#40913 showed a real world case of assuming that fn()
can be null.
patterns that should be linted are
std::mem::transmute::<Anything, SomeFnPtrType>(std::ptr::null())
(fn_ptr as *mut something).is_null()
rust-lang/rust#40913 showed a real world case of assuming that fn()
can be null.
patterns that should be linted are
std::mem::transmute::<Anything, SomeFnPtrType>(std::ptr::null())
(fn_ptr as *mut something).is_null()