| #
e55acb73 |
| 02-May-2026 |
Gary Guo <gary@garyguo.net> |
rust: pin-init: internal: pin_data: complete invariant borrow support
Non-covariant types can already be accessed inside projections. As projections are only generated for `Pin<&mut T>`, they're not
rust: pin-init: internal: pin_data: complete invariant borrow support
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 <lossin@kernel.org> Link: https://patch.msgid.link/20261008-dev-selfref-v2-17-e280b3c8fba5@garyguo.net/ Signed-off-by: Gary Guo <gary@garyguo.net>
show more ...
|
| #
0b326dd9 |
| 06-May-2026 |
Gary Guo <gary@garyguo.net> |
rust: pin-init: internal: pin_data: support mutable borrows
Allow fields to be mutably referenced by other fields in addition to shared references. In order for this to be sound, the fields that can
rust: pin-init: internal: pin_data: support mutable borrows
Allow fields to be mutably referenced by other fields in addition to shared references. In order for this to be sound, the fields that can be mutably borrowed are blocked from being accessed via field access syntax or projection to maintain the aliasing requirements.
Acked-by: Benno Lossin <lossin@kernel.org> Link: https://patch.msgid.link/20261008-dev-selfref-v2-14-e280b3c8fba5@garyguo.net/ Signed-off-by: Gary Guo <gary@garyguo.net>
show more ...
|
| #
8f6607d1 |
| 29-Sep-2026 |
Gary Guo <gary@garyguo.net> |
rust: pin-init: internal: pin_data: enable self-referential support
Enable self-referential support, and add example and test cases.
Acked-by: Benno Lossin <lossin@kernel.org> Link: https://patch.m
rust: pin-init: internal: pin_data: enable self-referential support
Enable self-referential support, and add example and test cases.
Acked-by: Benno Lossin <lossin@kernel.org> Link: https://patch.msgid.link/20261008-dev-selfref-v2-11-e280b3c8fba5@garyguo.net/ Signed-off-by: Gary Guo <gary@garyguo.net>
show more ...
|