Loading
rust: pin-init: internal: init: add support for attributes on initializer fields
Initializer fields ought to support the same attributes that are allowed in struct initializers on fields. For example, `cfg` or lint levels such as `expect`, `allow` etc. Add parsing support for these attributes using syn to initializer fields and adjust the macro expansion accordingly. Tested-by:Andreas Hindborg <a.hindborg@kernel.org> Reviewed-by:
Gary Guo <gary@garyguo.net> Signed-off-by:
Benno Lossin <lossin@kernel.org>