@@ -298,7 +298,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
298
298
pub ( super ) fn expr_into_pattern (
299
299
& mut self ,
300
300
mut block : BasicBlock ,
301
- irrefutable_pat : Pattern < ' tcx > ,
301
+ irrefutable_pat : Pat < ' tcx > ,
302
302
initializer : ExprRef < ' tcx > ,
303
303
) -> BlockAnd < ( ) > {
304
304
match * irrefutable_pat. kind {
@@ -337,7 +337,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
337
337
// dubious way, so it may be that the test is kind of
338
338
// broken.
339
339
PatKind :: AscribeUserType {
340
- subpattern : Pattern {
340
+ subpattern : Pat {
341
341
kind : box PatKind :: Binding {
342
342
mode : BindingMode :: ByValue ,
343
343
var,
@@ -414,7 +414,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
414
414
pub fn place_into_pattern (
415
415
& mut self ,
416
416
block : BasicBlock ,
417
- irrefutable_pat : Pattern < ' tcx > ,
417
+ irrefutable_pat : Pat < ' tcx > ,
418
418
initializer : & Place < ' tcx > ,
419
419
set_match_place : bool ,
420
420
) -> BlockAnd < ( ) > {
@@ -486,7 +486,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
486
486
& mut self ,
487
487
mut visibility_scope : Option < SourceScope > ,
488
488
scope_span : Span ,
489
- pattern : & Pattern < ' tcx > ,
489
+ pattern : & Pat < ' tcx > ,
490
490
has_guard : ArmHasGuard ,
491
491
opt_match_place : Option < ( Option < & Place < ' tcx > > , Span ) > ,
492
492
) -> Option < SourceScope > {
@@ -556,7 +556,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
556
556
557
557
pub ( super ) fn visit_bindings (
558
558
& mut self ,
559
- pattern : & Pattern < ' tcx > ,
559
+ pattern : & Pat < ' tcx > ,
560
560
pattern_user_ty : UserTypeProjections ,
561
561
f : & mut impl FnMut (
562
562
& mut Self ,
@@ -718,7 +718,7 @@ pub struct MatchPair<'pat, 'tcx> {
718
718
place : Place < ' tcx > ,
719
719
720
720
// ... must match this pattern.
721
- pattern : & ' pat Pattern < ' tcx > ,
721
+ pattern : & ' pat Pat < ' tcx > ,
722
722
}
723
723
724
724
#[ derive( Clone , Debug , PartialEq ) ]
@@ -1339,7 +1339,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1339
1339
}
1340
1340
1341
1341
///////////////////////////////////////////////////////////////////////////
1342
- // Pattern binding - used for `let` and function parameters as well.
1342
+ // Pat binding - used for `let` and function parameters as well.
1343
1343
1344
1344
impl < ' a , ' tcx > Builder < ' a , ' tcx > {
1345
1345
/// Initializes each of the bindings from the candidate by
0 commit comments