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

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

Thus remove the option and simplify the code.

In particular, this includes removing our use of the predecessor unstable
features we used with Rust < 1.84.0 (`coerce_unsized`, `dispatch_from_dyn`
and `unsize`).

Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260405235309.418950-11-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
init/Kconfig
rust/kernel/alloc/kbox.rs
rust/kernel/lib.rs
rust/kernel/list/arc.rs
rust/kernel/sync/arc.rs