]> git.hungrycats.org Git - linux/commit
rust: pin-init: internal: project slots instead of references
authorGary Guo <gary@garyguo.net>
Tue, 12 May 2026 12:09:52 +0000 (13:09 +0100)
committerGary Guo <gary@garyguo.net>
Mon, 18 May 2026 11:21:13 +0000 (12:21 +0100)
commit5483a97dd2dfcaf8540dba0a80b68a400c4c1861
tree1a5529be3afbcb8e293bf6d27a38fc1aef752316
parent57b0a0d7e5a063edceb50bffa648b49591112896
rust: pin-init: internal: project slots instead of references

By projecting slots, the `pin_init!` and `init!` code path can be more
unified. This also reduces the amount of macro-generated code and shifts
them to the shared infrastructure.

Signed-off-by: Gary Guo <gary@garyguo.net>
rust/pin-init/internal/src/init.rs
rust/pin-init/internal/src/pin_data.rs
rust/pin-init/src/__internal.rs
rust/pin-init/src/lib.rs