mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
c3815aa4bb
commit
983d13fc2c
|
|
@ -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
|
||||
),* $(,)?
|
||||
}),
|
||||
) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user