Re: [PATCH v2 1/3] rust: sync: change `<Arc<T> as ForeignOwnable>::PointedTo` to `T`
From: Tamir Duberstein
Date: Sun Feb 16 2025 - 21:04:50 EST
On Fri, Feb 7, 2025 at 9:50 AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> Using `ArcInner` as `PoinedTo` in the `ForeignOwnable` implementation for
> `Arc` is a bit unfortunate. Using `T` as `PointedTo` does not remove any
> functionality, but allows `ArcInner` to be private. Further, it allows
> downstream users to write code that is generic over `Box` and `Arc`, when
> downstream users need access to `T` after calling `into_foreign`.
I stumbled upon https://github.com/Rust-for-Linux/linux/pull/1036 the
other day. Boqun, are there any plans to revive this work? It might
obviate the need for _this_ patch.
Tamir