Skip to content

Commit f203e1e

Browse files
authored
Fix false positive invalid null usage warning for ptr::slice_from_raw_parts_* functions
1 parent 7901289 commit f203e1e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clippy_lints/src/ptr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
277277
| sym::ptr_read_unaligned
278278
| sym::ptr_read_volatile
279279
| sym::ptr_replace
280-
| sym::ptr_slice_from_raw_parts
281-
| sym::ptr_slice_from_raw_parts_mut
282280
| sym::ptr_write
283281
| sym::ptr_write_bytes
284282
| sym::ptr_write_unaligned

0 commit comments

Comments
 (0)