diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-22 16:54:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-22 16:54:58 +0100 |
| commit | f194a84ce2e08c96e71b21ca2726b544704e263f (patch) | |
| tree | 5bef94ac4a8aa7ef5224d96279aa272f17766ae7 /compiler/rustc_pattern_analysis/src | |
| parent | d942357d7ae5d473ea5677a822924bf1217d7a2c (diff) | |
| parent | 0a9bb9722907cbbd75a643fad1af3278517805fc (diff) | |
| download | rust-f194a84ce2e08c96e71b21ca2726b544704e263f.tar.gz rust-f194a84ce2e08c96e71b21ca2726b544704e263f.zip | |
Rollup merge of #120097 - Nadrieril:consistent_unreachable_subpats, r=compiler-errors
Report unreachable subpatterns consistently We weren't reporting unreachable subpatterns in function arguments and `let` expressions. This wasn't very important, but never patterns make it more relevant: a user might write `let (Ok(x) | Err(!)) = ...` in a case where `let Ok(x) = ...` is accepted, so we should report the `Err(!)` as redundant. r? ```@compiler-errors```
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
