Re: [PATCH v2] rust: allow `clippy::unwrap_or_default` globally
Miguel Ojeda <[email protected]> Wed, 8 Jul 2026 12:54:45 +0200
| Newsgroups | org.kernel.vger.linux-kbuild,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CANiq72mn+8zqQguApz4FEqvu5mGSrt231BKOwKf9oHVx-xZ+Bw@mail.gmail.com> |
On Wed, Jul 8, 2026 at 12:49 PM Alexandre Courbot <[email protected]> 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