Re: [PATCH v2] rust: allow `clippy::unwrap_or_default` globally
From: Miguel Ojeda
Date: Wed Jul 08 2026 - 07:00:28 EST
On Wed, Jul 8, 2026 at 12:49 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> +# `-Aclippy::unwrap_or_default`: the lint is buggy [1] and ignores our
> +# MSRV. It can trigger depending on the optimization level.
> +# [1] https://github.com/rust-lang/rust-clippy/issues/17379
> rust_common_flags_per_version := \
> - $(if $(call rustc-min-version,108600),,-Aclippy::precedence)
> + $(if $(call rustc-min-version,108600),,-Aclippy::precedence) \
> + -Aclippy::unwrap_or_default
I guess it may be per-version later on (i.e. when they fix it), but
for now, it can go into the main list above -- I can move it when I
apply it.
Thanks for the patch!
Cheers,
Miguel