]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: pin-init: internal: init: simplify Zeroable safety check
authorBenno Lossin <lossin@kernel.org>
Fri, 16 Jan 2026 10:54:29 +0000 (11:54 +0100)
committerBenno Lossin <lossin@kernel.org>
Sat, 17 Jan 2026 09:51:43 +0000 (10:51 +0100)
commit1f1cd6964bbc37f2cc82a0adc8a0acec34af1afb
tree316144798754a604e07eb7241fbb4e8ba14cde28
parentceca298c53f9300ea689207f9ae9a3da3b4b4c4f
rust: pin-init: internal: init: simplify Zeroable safety check

The `Zeroable` type check uses a small dance with a raw pointer to aid
type inference. It turns out that this is not necessary and type
inference is powerful enough to resolve any ambiguity. Thus remove it.

Suggested-by: Gary Guo <gary@garyguo.net>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Benno Lossin <lossin@kernel.org>
rust/pin-init/internal/src/init.rs