linux/rust/macros
Miguel Ojeda 42ec980024 rust: macros: simplify code using `feature(extract_if)`
`feature(extract_if)` [1] was stabilized in Rust 1.87.0 [2], and the last
significant change happened in Rust 1.85.0 [3] when the range parameter
was added.

That is, with our new minimum version, we can start using the feature.

Thus simplify the code using the feature and remove the TODO comment.

Suggested-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/rust-for-linux/DHHVSX66206Y.3E7I9QUNTCJ8I@garyguo.net/
Link: https://github.com/rust-lang/rust/issues/43244 [1]
Link: https://github.com/rust-lang/rust/pull/137109 [2]
Link: https://github.com/rust-lang/rust/pull/133265 [3]
Link: https://patch.msgid.link/20260405235309.418950-16-ojeda@kernel.org
Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2026-04-07 10:00:24 +02:00
..
concat_idents.rs rust: macros: convert `concat_idents!` to use `syn` 2026-01-28 00:55:25 +01:00
export.rs rust: macros: convert `#[export]` to use `syn` 2026-01-28 00:55:25 +01:00
fmt.rs Rust changes for v6.20 / v7.0 2026-02-10 11:53:01 -08:00
helpers.rs rust: allow globally `clippy::incompatible_msrv` 2026-04-07 09:54:57 +02:00
kunit.rs rust: macros: simplify code using `feature(extract_if)` 2026-04-07 10:00:24 +02:00
lib.rs rust: macros: simplify code using `feature(extract_if)` 2026-04-07 10:00:24 +02:00
module.rs rust: macros: simplify `format!` arguments 2026-04-03 23:19:52 +02:00
paste.rs rust: macros: use `quote!` from vendored crate 2026-01-28 00:55:24 +01:00
vtable.rs rust: macros: support `#[cfg]` properly in `#[vtable]` macro. 2026-01-28 13:44:17 +01:00