summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-05-12 15:09:48 +0300
committerGary Guo <gary@garyguo.net>2026-05-14 22:18:14 +0300
commitfea304ec875454360a3be106e0baad96032bf9fe (patch)
tree25346c4763b8d26c6be97b357bbd8b08288b270a /include/linux/debugobjects.h
parent4b60f38cd2a4b2d3288377f25100f8d67015988a (diff)
downloadlinux-fea304ec875454360a3be106e0baad96032bf9fe.tar.xz
rust: pin-init: internal: add `PhantomInvariant` and `PhantomInvariantLifetime`
Currently, the `pin_init` library has an `Invariant` type alias, and it is instantiated using `PhantomData`. Generated code from `pin_data` on the other hand cannot access the crate-local type alias, so it generates `PhantomData<fn(T) -> T>` directly. This is all very inconsistent, despite the exact same use case of ensuring invariance. Add `PhantomInvariant` and `PhantomInvariantLifetime` and switch all users that need to express the concept of invariance to use these. They're polyfills of unstable types in the same names in the Rust standard library. Link: https://patch.msgid.link/20260512-pin-init-sync-v1-3-81963130dfbd@garyguo.net Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions