linux/rust/pin-init/examples
Antonio Hickey 09808839c7 rust: pin-init: replace `addr_of_mut!` with `&raw mut`
`feature(raw_ref_op)` became stable in Rust 1.82.0 which is the current
MSRV of pin-init with no default features. Earlier Rust versions will
now need to enable `raw_ref_op` to continue to work with pin-init.

This reduces visual complexity and improves consistency with existing
reference syntax.

Suggested-by: Benno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1148
Closes: https://github.com/Rust-for-Linux/pin-init/issues/99
Signed-off-by: Antonio Hickey <contact@antoniohickey.com>
Link: e27763004e
[ Reworded commit message. - Benno ]
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260319093542.3756606-6-lossin@kernel.org
Signed-off-by: Benno Lossin <lossin@kernel.org>
2026-03-25 10:57:53 +01:00
..
big_struct_in_place.rs rust: pin-init: replace `addr_of_mut!` with `&raw mut` 2026-03-25 10:57:53 +01:00
error.rs
linked_list.rs rust: pin-init: replace `addr_of_mut!` with `&raw mut` 2026-03-25 10:57:53 +01:00
mutex.rs rust: pin-init: replace `addr_of_mut!` with `&raw mut` 2026-03-25 10:57:53 +01:00
pthread_mutex.rs rust: pin-init: replace `addr_of_mut!` with `&raw mut` 2026-03-25 10:57:53 +01:00
static_init.rs rust: pin-init: replace `addr_of_mut!` with `&raw mut` 2026-03-25 10:57:53 +01:00