alexcrichton opened PR #10559 from alexcrichton:unsafe-op-in-unsafe-fn to bytecodealliance:main:
This commit enables the
unsafe-op-in-unsafe-fnlint in rustc for the entire workspace. This lint will be warn-by-default in the 2024 edition so this is intended to smooth the future migration to the new edition.Many
unsafeblocks were added in places the lint warned about, with two major exceptions. Thewasmtimeandwasmtime-c-apicrates simply expect this lint to fire and effectively disable the lint. They're too big at this time to do through this PR. My hope is that one day in the future they'll be migrated, but more realistically that probably won't happen so these crates just won't benefit from this lint.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #10559.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #10559.
alexcrichton requested wasmtime-core-reviewers for a review on PR #10559.
alexcrichton requested wasmtime-default-reviewers for a review on PR #10559.
alexcrichton updated PR #10559.
alexcrichton updated PR #10559.
fitzgen submitted PR review.
alexcrichton merged PR #10559.
Last updated: Dec 06 2025 at 06:05 UTC