Re: [PATCH v3] rust: sync: make AlwaysRefCounted::inc_ref an associated function
From: Tran Van Tien
Date: Thu Nov 26 2026 - 08:57:53 EST
Hi all,
I am withdrawing this series. Sorry for the noise, and for the sending
rate in particular.
Andreas is right and I was wrong on the design. Making `inc_ref` unsafe
and taking `NonNull<Self>` adds a safety contract that is not needed:
leaking a reference is safe, so the function does not have to be unsafe,
and the argument should stay `&Self`. The only change that is actually
wanted is that `inc_ref` becomes an associated function.
That has already been done, and done better than I did it. Trevor's v7
does exactly that, is at v7 after review, and carries Reviewed-by from
Alice and Andreas:
https://lore.kernel.org/rust-for-linux/20260628100731.64885-1-trev@xxxxxxxxxxxx/
So there is nothing for this series to add. I will follow Trevor's thread
rather than send another revision here.
Thanks to Andreas, Nicolas and the sashiko bot for the reviews.
Tran Van Tien