summaryrefslogtreecommitdiff
path: root/rust/kernel/prelude.rs
diff options
context:
space:
mode:
authorWedson Almeida Filho <wedsonaf@gmail.com>2022-12-28 06:03:46 +0000
committerMiguel Ojeda <ojeda@kernel.org>2023-01-16 23:48:06 +0100
commit0748424aba89811b85e6e0f958b8ccd47f5af47e (patch)
tree6ec2c6bbedcda88ba9db638df158a570feaf6925 /rust/kernel/prelude.rs
parent70e42ebbf6416e8005d8e08ae521b7d5cc5a8b3a (diff)
downloadlinux-0748424aba89811b85e6e0f958b8ccd47f5af47e.tar.gz
linux-0748424aba89811b85e6e0f958b8ccd47f5af47e.tar.bz2
linux-0748424aba89811b85e6e0f958b8ccd47f5af47e.zip
rust: sync: add support for dispatching on Arc and ArcBorrow.
Trait objects (`dyn T`) require trait `T` to be "object safe". One of the requirements for "object safety" is that the receiver have one of the allowed types. This commit adds `Arc<T>` and `ArcBorrow<'_, T>` to the list of allowed types. Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Acked-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/prelude.rs')
0 files changed, 0 insertions, 0 deletions