Skip to content

Commit

Permalink
Fix false positive invalid null usage warning for `ptr::slice_from_ra…
Browse files Browse the repository at this point in the history
…w_parts_*` functions
  • Loading branch information
ljgermain authored Sep 24, 2024
1 parent 7901289 commit f203e1e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clippy_lints/src/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ fn check_invalid_ptr_usage<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
| sym::ptr_read_unaligned
| sym::ptr_read_volatile
| sym::ptr_replace
| sym::ptr_slice_from_raw_parts
| sym::ptr_slice_from_raw_parts_mut
| sym::ptr_write
| sym::ptr_write_bytes
| sym::ptr_write_unaligned
Expand Down

0 comments on commit f203e1e

Please sign in to comment.