Re: [PATCH] checkpatch: warn on Rust unwrap and expect calls
FUJITA Tomonori <[email protected]> Wed, 08 Jul 2026 18:14:09 +0900 (JST)
| Newsgroups | org.kernel.vger.workflows,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 7 Jul 2026 13:51:04 +0530 Harish-CS <[email protected]> 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!()?