linux-yocto/rust/kernel/sync
Tamir Duberstein c6340da3d2 rust: arc: use NonNull::new_unchecked
There is no need to check (and panic on violations of) the safety
requirements on `ForeignOwnable` functions. Avoiding the check is
consistent with the implementation of `ForeignOwnable` for `Box`.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20241120-borrow-mut-v6-1-80dbadd00951@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-01-13 23:45:30 +01:00
..
arc rust: provide proper code documentation titles 2024-10-07 21:39:57 +02:00
lock rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
arc.rs rust: arc: use NonNull::new_unchecked 2025-01-13 23:45:30 +01:00
condvar.rs rust: use custom FFI integer types 2024-11-10 23:58:00 +01:00
lock.rs Rust changes for v6.13 2024-11-26 14:00:26 -08:00
locked_by.rs rust: treewide: switch to the kernel Vec type 2024-10-15 23:10:32 +02:00
poll.rs rust: file: add abstraction for poll_table 2024-09-30 13:02:29 +02:00