diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-14 19:22:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-14 19:22:17 +0200 |
| commit | 7d1b24f4bcd591490369862a1227273d6027fc16 (patch) | |
| tree | a4bc87ce83d13294f585df5d161607f79524c7e7 /tests/codegen/array-codegen.rs | |
| parent | 3a5c24550e9775472d0271b71de6fa707dff3ca3 (diff) | |
| parent | 89f75ff4d05d22ca3b9b3d70fc6bcd225c8dbf12 (diff) | |
| download | rust-7d1b24f4bcd591490369862a1227273d6027fc16.tar.gz rust-7d1b24f4bcd591490369862a1227273d6027fc16.zip | |
Rollup merge of #116715 - Nadrieril:patkind-error, r=oli-obk
Prevent more spurious unreachable pattern lints Continues the work of https://github.com/rust-lang/rust/pull/115937 by introducing `PatKind::Error`, to be used instead of `PatKind::Wild` when an error was raised during pattern lowering. Most of match checking lints are skipped when a `PatKind::Error` is encountered. This avoids confusing extra warnings when a pattern is malformed. Now `PatKind::Wild` should indicate an actual wildcard pattern. r? `@oli-obk`
Diffstat (limited to 'tests/codegen/array-codegen.rs')
0 files changed, 0 insertions, 0 deletions
