rust: pin-init: allow pub fields in derive(Zeroable)

Add support for parsing `pub`, `pub(crate)` and `pub(super)` to the
derive macro `Zeroable`.

Link: e8311e52ca
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
This commit is contained in:
Benno Lossin
2025-04-21 22:18:33 +00:00
parent c3815aa4bb
commit 983d13fc2c

View File

@@ -1393,7 +1393,7 @@ macro_rules! __derive_zeroable {
@body({
$(
$(#[$($field_attr:tt)*])*
$field:ident : $field_ty:ty
$field_vis:vis $field:ident : $field_ty:ty
),* $(,)?
}),
) => {