ref_as_ptr
example does not emit warnings
#12771
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
The example in https://rust-lang.github.io/rust-clippy/master/index.html#/ref_as_ptr does not emit any warnings for the lint.
Lint Name
ref_as_ptr
Reproducer
I tried this code:
I expected to see this happen:
Since this is the example for what not to do, the lint should emit a warning here suggesting to use
ptr::from_ref
.Instead, this happened:
No warnings.
Version
The text was updated successfully, but these errors were encountered: