undocumented_unsafe_blocks doesn't detect safety comment above associated constant #11709
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
I make use of the
voladdress
crate which uses a pattern of "unsafe construction, safe use", but when I put aVolAddress
in a constant clippy doesn't detect the safety comment I add above it.Reproducer
I tried this code:
I expected to see this happen:
no clippy warning
Instead, this happened:
a clippy warning
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: