Open
Description
If there is a fixed size array with a length of 0 or 1, and as_ptr()
or as_ptr_mut()
is called on that array and the result passed to slice::from_raw_parts
or slice::from_raw_parts_mut
, then emit a lint.
This is almost definitely a sign of UB: rust-lang/unsafe-code-guidelines#134 (comment)