mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Non-covariant types can already be accessed inside projections. As
projections are only generated for `Pin<&mut T>`, they're not accessible
otherwise. Add `with_{field_name}` methods so fields can be accessed using
closures with just `&T`.
Acked-by: Benno Lossin <[email protected]>
Link: https://patch.msgid.link/[email protected]/
Signed-off-by: Gary Guo <[email protected]>