Skip to content
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

Consider enabling the unsafe_op_in_unsafe_fn lint #2165

Closed
Jan561 opened this issue Oct 8, 2023 · 1 comment · Fixed by #2180
Closed

Consider enabling the unsafe_op_in_unsafe_fn lint #2165

Jan561 opened this issue Oct 8, 2023 · 1 comment · Fixed by #2180

Comments

@Jan561
Copy link
Contributor

Jan561 commented Oct 8, 2023

This lint forces the user to use unsafe blocks even inside unasfe functions.

This lint makes it easier for maintainers to spot the operations that are causing unsafety, and provide an opportunity for contributors to explain why this operation is safe, given the additional guarantees the caller has to uphold.

This lint is currently allowed by default, but this will change in edition 2024.

References:

@SteveLauC
Copy link
Member

Seems to be a reasonable change to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants