Replace all catch all (_ => {}) with panic
Open
@minzyfox is already working on this.
Since Sep 14, 2026.
core-lang
refactor
- Dominant language
- Rust
- Stars
- 14
- Forks
- 2
- Avg merge
- 12h 42m
- Merged PRs (30d)
- 61
Description
Catch all are source of bugs. They should be panics. Add a lint that errors for catch all.
Here is output of git grep _ =? {} but there might be more.
src/codegen/lower/seam_cert.rs:148: _ => {}
src/codegen/lower/seam_cert.rs:180: _ => {}
src/driver.rs:1053: _ => {}
src/formatter.rs:68: _ => {}
src/hir/check/calls.rs:324: _ => {}
src/hir/check/control.rs:265: _ => {}
src/hir/check/control.rs:285: _ => {}
src/hir/check/operators.rs:172: _ => {}
src/hir/check/raw.rs:1044: _ => {}
src/hir/check/raw.rs:1784: _ => {}
src/hir/check/transfer.rs:97: _ => {}
src/hir/check/transfer.rs:132: _ => {}
src/hir/check/transfer.rs:663: _ => {}
src/hir/check/transfer.rs:684: _ => {}
src/hir/env.rs:462: _ => {}
src/hir/env.rs:693: _ => {}
src/hir/env.rs:858: _ => {}
src/hir/env.rs:939: _ => {}
src/hir/expr.rs:90: _ => {}
src/hir/expr.rs:256: _ => {}
src/hir/flatten.rs:4950: _ => {}
src/hir/flatten.rs:5036: _ => {}
src/hir/flatten.rs:5089: _ => {}
src/hir/flatten.rs:5173: _ => {}
src/hir/flatten.rs:5559: _ => {}
src/hir/provenance.rs:226: _ => {}
src/hir/provenance.rs:258: _ => {}
src/hir/stmt.rs:75: _ => {}
src/hir/stmt.rs:875: _ => {}
src/ide/mod.rs:341: _ => {}
src/parser/expr.rs:85: _ => {}
src/parser/macro_expand.rs:245: _ => {}
src/parser/macro_expand.rs:397: _ => {}
src/pipeline.rs:563: _ => {}
src/syntax/resolve.rs:225: _ => {}
src/syntax/resolve.rs:304: _ => {}
src/syntax/types.rs:771: _ => {}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.