summaryrefslogtreecommitdiff
path: root/rust/kernel/types.rs
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2024-11-20 14:46:00 +0300
committerMiguel Ojeda <ojeda@kernel.org>2025-01-14 01:45:30 +0300
commitc6340da3d254ee491fc113d4dc5566bea7bebdf3 (patch)
tree1f4db50bc0ec0d45d7d70369b038663cf9d352ed /rust/kernel/types.rs
parent47cb6bf7860ce33bdd000198f8b65cf9fb3324b4 (diff)
downloadlinux-c6340da3d254ee491fc113d4dc5566bea7bebdf3.tar.xz
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>
Diffstat (limited to 'rust/kernel/types.rs')
0 files changed, 0 insertions, 0 deletions