diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2026-03-24 20:02:35 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-01 12:18:21 +0200 |
| commit | 18e9fafb2672cb976edfe51e899484c2ea892170 (patch) | |
| tree | d555b61aad9c49eca1eea9152c3130b211fd900a /rust/kernel/sync/completion.rs | |
| parent | 5326a18e3e640061ca4b65c1b732feaeace61c39 (diff) | |
rust: sync: implement == operator for ARef
Rust Binder wants to perform a comparison between ARef<Task> and &Task,
so define the == operator for ARef<_> when compared with another ARef<_>
or just a reference. The operator is implemented in terms of the same
operator applied to the inner type.
Note that PartialEq<U> cannot be implemented because it would overlap
with the impl for ARef<U>.
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260324-close-fd-check-current-v3-1-b94274bedac7@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/sync/completion.rs')
0 files changed, 0 insertions, 0 deletions
