borrow_deref_ref
does not understand &raw
#13584
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
borrow_deref_ref
ignores the usage of&raw const *s
and treats it like&*s
, which is obviously wrong.Lint Name
borrow_deref_ref
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
no such warning
Version
rustc 1.84.0-nightly
(2024-10-21 4392847410ddd67f6734)
Additional Labels
No response
The text was updated successfully, but these errors were encountered: