Lint suggestion: unsafe
should require a // Safety
comment · Issue #4828 · rust-lang/rust-clippy (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
I was pleased to see that there's a clippy lint for requiring a /// # Safety
header in exposed unsafe methods; my suggestion is to go further and add a lint requiring safety commentary in all unsafe { }
blocks.
Metadata
Metadata
Development
No branches or pull requests