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
Unsafe attributes have been stabilized (rust-lang/rust#128771), thus it would be nice to have a lint that ensures // SAFETY comments are not written for safe attributes.
Since unnecessary_safety_comment covers impls too, perhaps it should also cover this too, although it may be best to possibly split them (but that is a different issue).
What it does
Unsafe attributes have been stabilized (rust-lang/rust#128771), thus it would be nice to have a lint that ensures
// SAFETY
comments are not written for safe attributes.Since
unnecessary_safety_comment
coversimpl
s too, perhaps it should also cover this too, although it may be best to possibly split them (but that is a different issue).See #13316 as well.
Advantage
No response
Drawbacks
No response
Example
Should be written as:
The text was updated successfully, but these errors were encountered: