Re: [PATCH v2] rust: sync: add `UniqueArc::as_ptr`

From: Miguel Ojeda

Date: Mon Jun 08 2026 - 05:12:27 EST


On Fri, Jun 5, 2026 at 3:17 PM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> Add a method to `UniqueArc` for getting a raw pointer. The implementation
> defers to the `Arc` implementation of the same method.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>

Applied to `rust-next` -- thanks everyone!

[ Relaxed bound moving it to new `T: ?Sized` impl block. Reworded since
it is not a method anymore. Added intra-doc link. - Miguel ]

I used [`UniqueArc`] since that is what we normally do, even if the
other `as_ptr()` doesn't at the moment.

I opened a "good first issue" with that and another bit I noticed:

https://github.com/Rust-for-Linux/linux/issues/1240

Cheers,
Miguel