Elektrine lite

← Feed

@tdelmas@mamot.fr

Post #2227704

2025-11-19 09:17 UTC

@pj@donotsta.re @Mara@hachyderm.io what about a lint that force every line that could panic to be preceded by a `// PANIC:` comment block, like the one for unsafe: https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks If they can panic. And if they can't: `#[expect(clippy::missing_panics_doc, reason = "infallible")]` https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc That way, any panic hidden in a function call should become visible.

Replies (0)

No replies.