diff options
| author | 2026-05-02 22:29:08 +0100 | |
|---|---|---|
| committer | 2026-10-11 11:06:46 +0100 | |
| commit | b8d10c864a76cfbe9d3d94b35482683219aca712 (patch) | |
| tree | 9313e94ed0ff59fa037ed52300b08aa061a65f32 /scripts/Makefile.thinlto | |
| parent | rust: pin-init: internal: pin_data: project self-referential fields (diff) | |
rust: pin-init: internal: pin_data: add `with_project` method
The `project` method needs to perform covariant coercion on covariant
fields, causing them to no longer being mutable. Implement a `with_project`
that does not require covariant coercion by using higher-ranked trait
bounds, thus allow the fields to be assignable inside the callback.
This mechanism can also be used to access non-covariant fields.
Acked-by: Benno Lossin <lossin@kernel.org>
Link: https://patch.msgid.link/20261008-dev-selfref-v2-10-e280b3c8fba5@garyguo.net/
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
