alexcrichton opened PR #10131 from alexcrichton:towards-warnings-always
to bytecodealliance:main
:
This PR is an attempt to make progress after https://github.com/bytecodealliance/wasmtime/pull/10108. The goal of this PR is to create a list of features to burn down over time and to have
dead_code
andunused_imports
lints on-by-default in Wasmtime. Thefeature = "default"
gate on thisallow
directive was replaced with individual features. The hope is that as individual features are removed from this list we can fix the resulting warnings and the commit such a ratchet.The first commit here replaces
not(feature = "default")
withnot(any(...))
for all features in thedefault
feature. A few features are removed until one was found to trigger a warning. The warning was then fixed generating this PR.My hope is that if others feel this is a good approach to take that we'd land this and then over time continue to ratchet down this list and remove more warnings. I don't think this is a perfect strategy because we don't test all feature combinations in CI, but it's hopefully at least progress.
alexcrichton requested fitzgen for a review on PR #10131.
alexcrichton requested wasmtime-core-reviewers for a review on PR #10131.
alexcrichton updated PR #10131.
alexcrichton updated PR #10131.
alexcrichton edited PR #10131:
This PR is an attempt to make progress after https://github.com/bytecodealliance/wasmtime/pull/10108. The goal of this PR is to create a list of features to burn down over time and to have
dead_code
andunused_imports
lints on-by-default in Wasmtime. Thefeature = "default"
gate on thisallow
directive was replaced with individual features. The hope is that as individual features are removed from this list we can fix the resulting warnings and the commit such a ratchet.The first commit here replaces
not(feature = "default")
withany(not(...))
for all features in thedefault
feature. A few features are removed until one was found to trigger a warning. The warning was then fixed generating this PR.My hope is that if others feel this is a good approach to take that we'd land this and then over time continue to ratchet down this list and remove more warnings. I don't think this is a perfect strategy because we don't test all feature combinations in CI, but it's hopefully at least progress.
alexcrichton updated PR #10131.
pchickey submitted PR review.
alexcrichton merged PR #10131.
Last updated: Feb 28 2025 at 03:10 UTC