summaryrefslogtreecommitdiffstats
path: root/rust/uapi/uapi_helper.h
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2024-09-04 22:43:46 +0200
committerMiguel Ojeda <ojeda@kernel.org>2024-10-07 21:39:57 +0200
commit04866494e936d041fd196d3a36aecd979e4ef078 (patch)
tree001d543cd83dd114a39ff7c29141af6d00a3d6d0 /rust/uapi/uapi_helper.h
parentrust: start using the `#[expect(...)]` attribute (diff)
downloadlinux-04866494e936d041fd196d3a36aecd979e4ef078.tar.xz
linux-04866494e936d041fd196d3a36aecd979e4ef078.zip
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>
Diffstat (limited to 'rust/uapi/uapi_helper.h')
0 files changed, 0 insertions, 0 deletions