undocumented_unsafe_blocks
does not trigger on unsafe trait impls
#8505
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
missing_safety_doc
andundocumented_unsafe_blocks
complement each other to provide full safety documentation coverage. Whilemissing_safety_doc
triggers on unsafe trait definitions and warn that safety docs must be provided,undocumented_unsafe_blocks
does not trigger on unsafe trait implementations.Lint Name
undocumented_unsafe_blocks
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
No lint triggered for the unsafe impl.
Version
The text was updated successfully, but these errors were encountered: