diff options
| author | Hamdan-Khan <hamdankhan212@gmail.com> | 2026-03-19 10:35:27 +0100 |
|---|---|---|
| committer | Benno Lossin <lossin@kernel.org> | 2026-03-25 10:57:33 +0100 |
| commit | aa9ec9460dd5c09849e09c3fac8f4286d2dc0312 (patch) | |
| tree | fc7baa8a4c0f74b724342cb6a7449185d2bb2b6f /rust/kernel/alloc/kvec/errors.rs | |
| parent | 44f6fa0dced7babfbfd08683fe376b0c72ebbec7 (diff) | |
rust: pin-init: implement ZeroableOption for NonZero* integer types
Add a macro for implementing `ZeroableOption` for `NonZero*` types.
`Option<NonZero*>` now automatically implements `Zeroable` trait by
implementing `ZeroableOption` for `NonZero*` types, which serves as a
blanket impl.
Closes: https://github.com/Rust-for-Linux/pin-init/issues/95
Signed-off-by: Hamdan-Khan <hamdankhan212@gmail.com>
Link: https://github.com/Rust-for-Linux/pin-init/commit/74f772641cd9670848fa360f4ebfd20fdb40bf78
[ Fixed a typo in the commit message. - Benno ]
Link: https://patch.msgid.link/20260319093542.3756606-5-lossin@kernel.org
Signed-off-by: Benno Lossin <lossin@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
