aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/expr.rs')
-rw-r--r--crates/ra_hir_def/src/expr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/expr.rs b/crates/ra_hir_def/src/expr.rs
index 5a84e08ed..9707c5527 100644
--- a/crates/ra_hir_def/src/expr.rs
+++ b/crates/ra_hir_def/src/expr.rs
@@ -394,7 +394,7 @@ pub enum Pat {
394 }, 394 },
395 Slice { 395 Slice {
396 prefix: Vec<PatId>, 396 prefix: Vec<PatId>,
397 rest: Option<PatId>, 397 slice: Option<PatId>,
398 suffix: Vec<PatId>, 398 suffix: Vec<PatId>,
399 }, 399 },
400 Path(Path), 400 Path(Path),
@@ -425,8 +425,8 @@ impl Pat {
425 args.iter().copied().for_each(f); 425 args.iter().copied().for_each(f);
426 } 426 }
427 Pat::Ref { pat, .. } => f(*pat), 427 Pat::Ref { pat, .. } => f(*pat),
428 Pat::Slice { prefix, rest, suffix } => { 428 Pat::Slice { prefix, slice, suffix } => {
429 let total_iter = prefix.iter().chain(rest.iter()).chain(suffix.iter()); 429 let total_iter = prefix.iter().chain(slice.iter()).chain(suffix.iter());
430 total_iter.copied().for_each(f); 430 total_iter.copied().for_each(f);
431 } 431 }
432 Pat::Record { args, .. } => { 432 Pat::Record { args, .. } => {