Documentation: rust: discuss `#[expect(...)]` in the guidelines
authorMiguel Ojeda <ojeda@kernel.org>
Wed, 4 Sep 2024 20:43:46 +0000 (22:43 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 7 Oct 2024 19:39:57 +0000 (21:39 +0200)
commit04866494e936d041fd196d3a36aecd979e4ef078
tree001d543cd83dd114a39ff7c29141af6d00a3d6d0
parent1f9ed172545687e5c04c77490a45896be6d2e459
Documentation: rust: discuss `#[expect(...)]` in the guidelines

Discuss `#[expect(...)]` in the Lints sections of the coding guidelines
document, which is an upcoming feature in Rust 1.81.0, and explain that
it is generally to be preferred over `allow` unless there is a reason
not to use it (e.g. conditional compilation being involved).

Tested-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20240904204347.168520-19-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Documentation/rust/coding-guidelines.rst