rust/clippy_lints
bors 2490de476a Auto merge of #10866 - est31:manual_let_else_pattern, r=Manishearth
manual_let_else: support struct patterns

This adds upon the improvements of #10797 and:

* Only prints `()` around `Or` patterns at the top level (fixing a regression of #10797)
* Supports multi-binding patterns: `let (u, v) = if let (Some(u_i), Ok(v_i)) = ex { (u_i, v_i) } else ...`
* Traverses through tuple patterns: `let v = if let (Some(v), None) = ex { v } else ...`
* Supports struct patterns: `let v = if let S { v, w, } = ex { (v, w) } else ...`

```
changelog: [`manual_let_else`]: improve pattern printing to support struct patterns
```

fixes #10708
fixes #10424
2023-06-03 14:25:39 +00:00
..
src Auto merge of #10866 - est31:manual_let_else_pattern, r=Manishearth 2023-06-03 14:25:39 +00:00
Cargo.toml Auto merge of #10871 - flip1995:rustup, r=flip1995 2023-06-02 08:22:37 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.