linux/rust/pin-init/internal/src
Benno Lossin 1f1cd6964b 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>
2026-01-17 10:51:43 +01:00
..
diagnostics.rs rust: pin-init: rewrite derive(Zeroable) and derive(MaybeZeroable) using syn 2026-01-17 10:51:42 +01:00
init.rs rust: pin-init: internal: init: simplify Zeroable safety check 2026-01-17 10:51:43 +01:00
lib.rs rust: pin-init: rewrite the initializer macros using syn 2026-01-17 10:51:42 +01:00
pin_data.rs rust: pin-init: add ?Sized bounds to traits in #[pin_data] macro 2026-01-17 10:51:42 +01:00
pinned_drop.rs rust: pin-init: rewrite the #[pinned_drop] attribute macro using syn 2026-01-17 10:51:42 +01:00
zeroable.rs rust: pin-init: rewrite derive(Zeroable) and derive(MaybeZeroable) using syn 2026-01-17 10:51:42 +01:00