not_unsafe_ptr_arg_deref does not trigger on type aliases and trait methods #8092
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
If the raw pointer is used behind a
type
alias or the function is part of a trait, not_unsafe_ptr_arg_deref is not triggered.Lint Name
not_unsafe_ptr_arg_deref
Reproducer
I tried this code:
Playground
I expected to see this happen: Lint for
not_unsafe_ptr_arg_deref
is triggeredInstead, this happened: Lint is not triggered
Version
No response
The text was updated successfully, but these errors were encountered: