Re: [PATCH v5 0/6] rust: reduce pointer casts, enable related lints
From: Tamir Duberstein
Date: Tue Mar 25 2025 - 16:23:07 EST
On Tue, Mar 25, 2025 at 1:17 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> On Tue, Mar 25, 2025 at 11:33 AM Benno Lossin <benno.lossin@xxxxxxxxx> wrote:
>
> > Here is another lint that we probably want to enable (after the `&raw
> > {const,mut}` series lands): `clippy::borrow_as_ptr`.
>
> This sounds like a good one to file.
Actually I just enabled this and it has no incremental effect relative
to the lints already enabled in the series. We can enable it now, but
it seems to only trigger on patterns already caught by `ref_as_ptr`.