diff options
| author | Alona Enraght-Moony <code@alona.page> | 2023-12-22 23:29:20 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2023-12-23 02:50:31 +0000 |
| commit | d72771ffeb7beeaf332def8b42c2c62b49cec753 (patch) | |
| tree | 87bd9350502ca49fac2ef40961696a3347bc90a0 | |
| parent | 062845421b8a678f2807f0682db429025dd18ebe (diff) | |
| download | rust-d72771ffeb7beeaf332def8b42c2c62b49cec753.tar.gz rust-d72771ffeb7beeaf332def8b42c2c62b49cec753.zip | |
bool->enum for ast::PatKind::Struct presence of `..`
See https://github.com/rust-lang/rust/blob/cee794ee98d49b45a55ba225680d98e0c4672736/compiler/rustc_parse/src/parser/pat.rs#L890-L897 for the only place this is constructed.
| -rw-r--r-- | clippy_lints/src/unnested_or_patterns.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unnested_or_patterns.rs b/clippy_lints/src/unnested_or_patterns.rs index 65600009c1d..77adcdd0e6b 100644 --- a/clippy_lints/src/unnested_or_patterns.rs +++ b/clippy_lints/src/unnested_or_patterns.rs @@ -293,7 +293,7 @@ fn extend_with_struct_pat( qself1: &Option<P<ast::QSelf>>, path1: &ast::Path, fps1: &mut [ast::PatField], - rest1: bool, + rest1: ast::PatFieldsRest, start: usize, alternatives: &mut ThinVec<P<Pat>>, ) -> bool { |
