Re: [PATCH v2 0/5] rust: reduce pointer casts, enable related lints
From: Tamir Duberstein
Date: Wed Mar 12 2025 - 11:15:51 EST
On Wed, Mar 12, 2025 at 11:07 AM Benno Lossin <benno.lossin@xxxxxxxxx> wrote:
>
> Hi Tamir,
>
> On Sun Mar 9, 2025 at 5:00 PM CET, Tamir Duberstein wrote:
> > This started with a patch that enabled `clippy::ptr_as_ptr`. Benno
> > Lossin suggested I also look into `clippy::ptr_cast_constness` and I
> > discovered `clippy::as_ptr_cast_mut`. This series now enables all 3
> > lints. It also enables `clippy::as_underscore` which ensures other
> > pointer casts weren't missed. The first commit reduces the need for
> > pointer casts and is shared with another series[1].
> >
> > Link: https://lore.kernel.org/all/20250307-no-offset-v1-0-0c728f63b69c@xxxxxxxxx/ [1]
> >
> > Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
>
> Thanks for this series! Did you encounter any instances of `$val as $ty`
> where you couldn't convert them due to unsizing? I remember that we had
> some cases back then (maybe Alice remembers them too?). If not then no
> worries :)
I didn't :)
Thank you for the reviews!