-
-
Notifications
You must be signed in to change notification settings - Fork 28
enable clippy::undocumented_unsafe_blocks
, clippy::unnecessary_safety_comment
#890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe we should enable |
@TestingPlant the difference is that |
Clippy is checked in CI → one cannot merge unless clippy passes. So it should be effectively the same. The benefit of |
Unless one overrides CI, or an unrelated change to CI breaks the check. Both is best anyway imo, safety concerns documented on the unsafe block stay there no matter what happens with git hosting. |
ok these are exotic scenarios that will either be rare or not happen with proper reviewing. However, I agree with you in the sense of using
even though I do not agree with your logic here really. |
To clarify, I'm referring to enabling If the safety comment is still there and the unsafe block is removed, there will be a warning from |
ah ok i wasnt aware there was a negative lint as well. ok i am fine with //safety comment then |
unsafe_used
lintclippy::undocumented_unsafe_blocks
, clippy::unnecessary_safety_comment
ok I changed the issue title as per @TestingPlant 's recommendation |
No description provided.
The text was updated successfully, but these errors were encountered: