summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-09-22 22:13:19 +0100
committerGary Guo <gary@garyguo.net>2026-09-25 21:37:44 +0100
commitf201d785cae6febe2be33235f541ef25b2a13240 (patch)
tree14b2e26742ff241504e8ed34d90cd7cf68a407e8 /tools/lib/python
parentdfb6a037fd586f1ffcba3b143dab58f5c88294d1 (diff)
downloadlinux-next-f201d785cae6febe2be33235f541ef25b2a13240.tar.gz
linux-next-f201d785cae6febe2be33235f541ef25b2a13240.zip
rust: pin-init: internal: pin_data: use HRTB to work around `trivial_bounds` for `Unpin`
`#[pin_data]` generates a `Unpin` implementation for the user, which requires reasoning using field types. This is rejected by rustc as "trivial bounds", which can only be specified using the `#![feature(trivial_bounds)]`. Currently we use an extra lifetime in `__Unpin` to work around this; use HRTB to introduce a dummy lifetime can achieve the same, which the `Zeroable` implementation already uses. Unify the `Unpin` impl to also use the same HRTB trick that `Zeroable` uses. This produces slightly better error message and slightly shorter expansion. Link: https://patch.msgid.link/20260922211320.1390159-1-gary@kernel.org Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions