Fix false positive invalid null usage warning for ptr::slice_from_raw_parts_* functions

This commit is contained in:
Liam Germain 2024-09-24 09:52:11 -04:00 committed by GitHub
parent 7901289135
commit f203e1ede5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,8 +277,6 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
| sym::ptr_read_unaligned | sym::ptr_read_unaligned
| sym::ptr_read_volatile | sym::ptr_read_volatile
| sym::ptr_replace | sym::ptr_replace
| sym::ptr_slice_from_raw_parts
| sym::ptr_slice_from_raw_parts_mut
| sym::ptr_write | sym::ptr_write
| sym::ptr_write_bytes | sym::ptr_write_bytes
| sym::ptr_write_unaligned | sym::ptr_write_unaligned