about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlona Enraght-Moony <code@alona.page>2023-12-22 23:29:20 +0000
committerAlona Enraght-Moony <code@alona.page>2023-12-23 02:50:31 +0000
commitd72771ffeb7beeaf332def8b42c2c62b49cec753 (patch)
tree87bd9350502ca49fac2ef40961696a3347bc90a0
parent062845421b8a678f2807f0682db429025dd18ebe (diff)
downloadrust-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.rs2
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 {