aboutsummaryrefslogtreecommitdiffstats
path: root/rust/pin-init/examples/static_init.rs
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2025-05-29 08:10:23 +0000
committerBenno Lossin <[email protected]>2025-06-11 19:13:56 +0000
commit8b3d955f72f999ccce26aabdeb09939964d05a61 (patch)
tree39b7c7535c7a6967ddad3d7987149047b7b87be5 /rust/pin-init/examples/static_init.rs
parentLinux 6.16-rc1 (diff)
downloadkernel-8b3d955f72f999ccce26aabdeb09939964d05a61.tar.gz
kernel-8b3d955f72f999ccce26aabdeb09939964d05a61.zip
rust: pin-init: improve safety documentation for `impl<T> [Pin]Init<T> for T`
The inner SAFETY comments were missing since commit 5cfe7bef6751 ("rust: enable `clippy::undocumented_unsafe_blocks` lint"). Also rework the implementation of `__pinned_init` to better justify the SAFETY comment. Link: https://github.com/Rust-for-Linux/pin-init/pull/62/commits/df925b2e27d499b7144df7e62b01acb00d4b94b8 Reviewed-by: Boqun Feng <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Benno Lossin <[email protected]>
Diffstat (limited to 'rust/pin-init/examples/static_init.rs')
0 files changed, 0 insertions, 0 deletions