diff options
author | Wedson Almeida Filho <wedsonaf@gmail.com> | 2022-12-28 09:03:41 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-01-17 00:20:18 +0300 |
commit | 53528772fb5a174c8606cdf0047ac4899ce05be7 (patch) | |
tree | 0d307da0adaab9a81d0579f88c379db967cdf6c9 /rust/kernel/lib.rs | |
parent | 9dc04365500340e6d60a996333d562af747337b1 (diff) | |
download | linux-53528772fb5a174c8606cdf0047ac4899ce05be7.tar.xz |
rust: sync: allow type of `self` to be `Arc<T>` or variants
This allows associated functions whose `self` argument has `Arc<T>` or
variants as their type. This, in turn, allows callers to use the dot
syntax to make calls.
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/lib.rs')
-rw-r--r-- | rust/kernel/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index ace064a3702a..1a10f7c0ddd9 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -14,6 +14,7 @@ #![no_std] #![feature(allocator_api)] #![feature(core_ffi_c)] +#![feature(receiver_trait)] // Ensure conditional compilation based on the kernel configuration works; // otherwise we may silently break things like initcall handling. |