You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Normal comments // can't be checked by Clippy, since they are handled by the lexer and don't appear in the AST. Clippy can only check for Doc comments ///. To lint this, Clippy would have to lex the code itself, which is something we really don't want to do (performance, code duplication, ...).
I'm closing this, since it is sadly not possible to accomplish. Sorry.
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 allunsafe { }
blocks.The text was updated successfully, but these errors were encountered: