]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: remove `RUSTC_HAS_SLICE_AS_FLATTENED` and simplify code
authorMiguel Ojeda <ojeda@kernel.org>
Sun, 5 Apr 2026 23:52:45 +0000 (01:52 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 7 Apr 2026 08:00:23 +0000 (10:00 +0200)
commit9b398d0565438e9929afbfbb8a1cd1f3242067ac
tree7f2b8842dc9ba42df9093a8b47a79dec19233408
parentb28711ac98e8b43bfbf5c918022018a54dcedd45
rust: remove `RUSTC_HAS_SLICE_AS_FLATTENED` and simplify code

With the Rust version bump in place, the `RUSTC_HAS_SLICE_AS_FLATTENED`
Kconfig (automatic) option is always true.

Thus remove the option and simplify the code.

In particular, this includes removing the `slice` module which contained
the temporary slice helpers, i.e. the `AsFlattened` extension trait and
its `impl`s.

Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260405235309.418950-10-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
init/Kconfig
rust/kernel/lib.rs
rust/kernel/prelude.rs
rust/kernel/slice.rs [deleted file]