This patch allows one to writeReviewed-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>
```
#[pin_data]
pub struct Foo {
#[cfg(CONFIG_BAR)]
a: Bar,
#[cfg(not(CONFIG_BAR))]
a: Baz,
}
```
Before, this would result in a compile error, because `#[pin_data]`
would generate two functions named `a` for both fields unconditionally.
Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
[...]