Re: [PATCH] checkpatch: warn on Rust unwrap and expect calls
From: Miguel Ojeda
Date: Wed Jul 08 2026 - 09:04:44 EST
On Wed, Jul 8, 2026 at 2:38 PM Harish CS <harish.cs.ss24@xxxxxxxxx> 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