Re: [PATCH v10 0/6] rust: reduce `as` casts, enable related lints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 18, 2025 at 5:37 PM Tamir Duberstein <tamird@xxxxxxxxx> 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.
>
> As a later addition, `clippy::cast_lossless` and `clippy::ref_as_ptr`
> are also enabled.
>
> This series depends on "rust: retain pointer mut-ness in
> `container_of!`"[1].
>
> Link: https://lore.kernel.org/all/20250409-container-of-mutness-v1-1-64f472b94534@xxxxxxxxx/ [1]
>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>

Now that -rc1 is out, could you please spin a v11? There are some new
ones in configfs, drm/device, cpufreq, nova-core and mm/virt.

(Please also see my comments in the underscore one).

Thanks!

Cheers,
Miguel





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux