Skip to content

Commit 351cc13

Browse files
committed
rust: arc: move Receiver for ArcBorrow<'_, T>
This is part of the effort to minimize the differences of the `rust` branch with respect to mainline in order to eventually drop it. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 901e416 commit 351cc13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/kernel/sync/arc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ struct ArcInner<T: ?Sized> {
130130
// This is to allow [`Arc`] (and variants) to be used as the type of `self`.
131131
impl<T: ?Sized> core::ops::Receiver for Arc<T> {}
132132

133-
// This is to allow [`ArcBorrow`] (and variants) to be used as the type of `self`.
134-
impl<T: ?Sized> core::ops::Receiver for ArcBorrow<'_, T> {}
135-
136133
// This is to allow coercion from `Arc<T>` to `Arc<U>` if `T` can be converted to the
137134
// dynamically-sized type (DST) `U`.
138135
impl<T: ?Sized + Unsize<U>, U: ?Sized> core::ops::CoerceUnsized<Arc<U>> for Arc<T> {}
@@ -436,6 +433,9 @@ pub struct ArcBorrow<'a, T: ?Sized + 'a> {
436433
_p: PhantomData<&'a ()>,
437434
}
438435

436+
// This is to allow [`ArcBorrow`] (and variants) to be used as the type of `self`.
437+
impl<T: ?Sized> core::ops::Receiver for ArcBorrow<'_, T> {}
438+
439439
impl<T: ?Sized> Clone for ArcBorrow<'_, T> {
440440
fn clone(&self) -> Self {
441441
*self

0 commit comments

Comments
 (0)