diff options
| author | Martin Kletzander <mkletzan@redhat.com> | 2026-05-27 20:19:52 +0300 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-05-29 23:34:53 +0300 |
| commit | 28ba76f374bf5fec9e5bf5035ffe90e4c6b05682 (patch) | |
| tree | 98add5201a5bc904f3efe894a9f3b1ded6763198 /include | |
| parent | 6fb5912c92926025a7e205d53feb73c3478c79a1 (diff) | |
| download | linux-28ba76f374bf5fec9e5bf5035ffe90e4c6b05682.tar.xz | |
rust: pin-init: internal: pin_data: filter non-`#[cfg]` attr in generated code
When using a macro with custom attributes in a `#[pin_data]` struct it
can mess up the generated code. The generated code needs nothing more than
the `#[cfg]` attribute, thus strip away all other attributes.
[ Rebased and updated to only include `#[cfg]` instead of both `#[cfg]` and
`#[doc]`; doc is not needed for the generated hidden items. - Gary ]
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Co-developed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260527-pin-init-sync-v1-1-e20335ed2501@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
