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

Windows: Add #[deny(unsafe_op_in_unsafe_fn)] #3070

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Aug 30, 2023

Although this does increase the verbosity, it also greatly helps in auditing which parts of the codebase is actually unsafe, and thus need extra scrutiny. My plan is to add it to the entirety of winit.

The lint is even stated in the documentation for the keyword unsafe, and the desire is to make it warn by default at some point in the far future.

  • Tested on all platforms changed

Related: What I'm seeing from applying this lint is that a lot of the Windows backend is unsafe, I think we should consider working on improving that.

@madsmtm madsmtm requested a review from msiglreith as a code owner August 30, 2023 13:15
@madsmtm madsmtm requested a review from maroider August 30, 2023 13:16
@madsmtm madsmtm added DS - windows S - maintenance Repaying technical debt labels Aug 30, 2023
@kchibisov
Copy link
Member

@madsmtm will need a rebase.

@madsmtm madsmtm force-pushed the windows-deny-unsafe_op_in_unsafe_fn branch from fdca191 to 6e68a96 Compare September 29, 2023 13:57
@madsmtm madsmtm merged commit b2b4564 into master Sep 29, 2023
@madsmtm madsmtm deleted the windows-deny-unsafe_op_in_unsafe_fn branch September 29, 2023 14:07
kchibisov pushed a commit to kchibisov/winit that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - windows S - maintenance Repaying technical debt
Development

Successfully merging this pull request may close these issues.

3 participants