Re: [PATCH] checkpatch: warn on Rust unwrap and expect calls
Miguel Ojeda <[email protected]> Wed, 8 Jul 2026 15:02:29 +0200
| Newsgroups | org.kernel.vger.workflows,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CANiq72k1kdv4R+QYyROpJmO6sZBASCh+RwYkoLZ=wf8zTyUrHg@mail.gmail.com> |
On Wed, Jul 8, 2026 at 2:38=E2=80=AFPM Harish CS <[email protected]>= wrote: > > Do you think using Clippy's existing semantic lints would be a better > direction to solve this in the build time itself ? Or do you have another= approach in mind? The most recent context about this is that we talked with upstream Clippy in RustWeek about this again, and, bandwidth-allowing, I think they are open to such lints. In fact, for `// PANIC`, there is an open PR: https://github.com/rust-lang/rust-clippy/pull/15969 Helping test and review that one for the kernel use case would be welcome, I would imagine, since getting lints right is harder than it looks! I have more context in the live list at: https://github.com/Rust-for-Linux/linux/issues/349 I hope that helps & thanks! Cheers, Miguel