2 Checks for the usage of `&expr as *const T` or
3 `&mut expr as *mut T`, and suggest using `ptr::addr_of` or
4 `ptr::addr_of_mut` instead.
7 This would improve readability and avoid creating a reference
8 that points to an uninitialized value or unaligned place.
9 Read the `ptr::addr_of` docs for more information.
14 let p = &val as *const i32;
17 let p_mut = &mut val_mut as *mut i32;
22 let p = std::ptr::addr_of!(val);
25 let p_mut = std::ptr::addr_of_mut!(val_mut);