diff options
| author | Gary Guo <gary@garyguo.net> | 2026-05-27 20:19:57 +0300 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-05-29 23:34:53 +0300 |
| commit | f85906616ec70d1d0178073b16ebd1c7f6ff1ee7 (patch) | |
| tree | c0df3fceee2dbb081cb1c8ff4c91874161afdebf /include/linux | |
| parent | 79bc923ae2a60a227907697abab4ed26c3fc3670 (diff) | |
| download | linux-f85906616ec70d1d0178073b16ebd1c7f6ff1ee7.tar.xz | |
rust: pin-init: remove `E` from `InitClosure`
Move `E` from type to trait impl block. This greatly shortens the
monomorphized type names. The `__pinned_init` function name is only
slightly shortened as it still encodes the `E` as part of `PinInit<T, E>`
in the symbol.
`T` cannot be moved to trait impl block otherwise it will start to conflict
with the `impl Init<T> for T` as Rust cannot deduce that there're no types
that fulfill `T: FnOnce(*mut T)`.
Link: https://patch.msgid.link/20260527-pin-init-sync-v1-6-e20335ed2501@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
