We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unsafe
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
All unsafe blocks should be documented with a SAFETY comment and be scoped as closely as possible.
SAFETY
After all are documented, the clippy::undocumented_unsafe_blocks lint should be enabled.
clippy::undocumented_unsafe_blocks
Also, the unsafe_op_in_unsafe_fn lint should be enabled (default in edition 2024), so that unsafe blocks in unsafe functions are also documented.
unsafe_op_in_unsafe_fn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
All
unsafe
blocks should be documented with aSAFETY
comment and be scoped as closely as possible.After all are documented, the
clippy::undocumented_unsafe_blocks
lint should be enabled.Also, the
unsafe_op_in_unsafe_fn
lint should be enabled (default in edition 2024), so thatunsafe
blocks inunsafe
functions are also documented.The text was updated successfully, but these errors were encountered: