Stream: git-wasmtime

Topic: wasmtime / PR #9696 Start using `#[expect]` instead of `#...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton opened PR #9696 from alexcrichton:expect-lints to bytecodealliance:main:

In Rust 1.81, our new MSRV, a new feature was added to Rust to use #[expect] to control lint levels. This new lint annotation will silence a lint but will itself cause a lint if it doesn't actually silence anything. This is quite useful to ensure that annotations don't get stale over time.

Another feature is the ability to use a reason directive on the attribute with a string explaining why the attribute is there. This string is then rendered in compiler messages if a warning or error happens.

This commit migrates applies a few changes across the workspace:

The end-state is that all crates should use
#[expect(..., reason = "...")] for any lint that unconditionally fires but is expected. The #[allow(..., reason = "...")] lint should be used for conditionally firing lints, primarily in macro-related code. The allow_attributes_without_reason = 'warn' level is intended to be permanent but the transitionary
#[expect(clippy::allow_attributes_without_reason)] crate annotations to go away over time.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton has marked PR #9696 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested cfallin for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested wasmtime-core-reviewers for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested pchickey for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 17:37):

alexcrichton requested wasmtime-default-reviewers for a review on PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 18:46):

github-actions[bot] commented on PR #9696:

Subscribe to Label Action

cc @cfallin, @fitzgen

<details>
This issue or pull request has been labeled: "cranelift", "cranelift:meta", "cranelift:module", "isle", "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 18:54):

alexcrichton updated PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2024 at 19:20):

alexcrichton updated PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 16:14):

alexcrichton updated PR #9696.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 17:15):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 17:36):

alexcrichton merged PR #9696.


Last updated: Dec 23 2024 at 12:05 UTC