Re: [PATCH] checkpatch: warn on Rust unwrap and expect calls
From: FUJITA Tomonori
Date: Wed Jul 08 2026 - 05:18:35 EST
On Tue, 7 Jul 2026 13:51:04 +0530
Harish-CS <harish.cs.ss24@xxxxxxxxx> wrote:
> Rust panic paths are discouraged in kernel code because panics currently
> lead to BUG-like behavior. Add a checkpatch warning for newly added Rust
> uses of unwrap(), unwrap_err(), expect() and expect_err() so contributors
> notice them during patch review.
How about panic!()?