@@ -969,7 +969,7 @@ fn detect_manual_memcpy<'a, 'tcx>(
969
969
} ) = higher:: range ( cx, arg)
970
970
{
971
971
// the var must be a single name
972
- if let PatKind :: Binding ( _, canonical_id, _, _) = pat. node {
972
+ if let PatKind :: Binding ( _, canonical_id, _, _, _ ) = pat. node {
973
973
let print_sum = |arg1 : & Offset , arg2 : & Offset | -> String {
974
974
match ( & arg1. value [ ..] , arg1. negate , & arg2. value [ ..] , arg2. negate ) {
975
975
( "0" , _, "0" , _) => "" . into ( ) ,
@@ -1086,7 +1086,7 @@ fn check_for_loop_range<'a, 'tcx>(
1086
1086
} ) = higher:: range ( cx, arg)
1087
1087
{
1088
1088
// the var must be a single name
1089
- if let PatKind :: Binding ( _, canonical_id, ident, _) = pat. node {
1089
+ if let PatKind :: Binding ( _, canonical_id, _ , ident, _) = pat. node {
1090
1090
let mut visitor = VarVisitor {
1091
1091
cx,
1092
1092
var : canonical_id,
@@ -1637,7 +1637,7 @@ fn check_for_mutability(cx: &LateContext<'_, '_>, bound: &Expr) -> Option<NodeId
1637
1637
let node_str = cx. tcx. hir( ) . get( node_id) ;
1638
1638
if_chain! {
1639
1639
if let Node :: Binding ( pat) = node_str;
1640
- if let PatKind :: Binding ( bind_ann, _ , _ , _ ) = pat. node;
1640
+ if let PatKind :: Binding ( bind_ann, .. ) = pat. node;
1641
1641
if let BindingAnnotation :: Mutable = bind_ann;
1642
1642
then {
1643
1643
return Some ( node_id) ;
@@ -1670,7 +1670,7 @@ fn check_for_mutation(
1670
1670
fn pat_is_wild < ' tcx > ( pat : & ' tcx PatKind , body : & ' tcx Expr ) -> bool {
1671
1671
match * pat {
1672
1672
PatKind :: Wild => true ,
1673
- PatKind :: Binding ( _ , _ , ident, None ) if ident. as_str ( ) . starts_with ( '_' ) => {
1673
+ PatKind :: Binding ( .. , ident, None ) if ident. as_str ( ) . starts_with ( '_' ) => {
1674
1674
let mut visitor = UsedVisitor {
1675
1675
var : ident. name ,
1676
1676
used : false ,
@@ -2095,7 +2095,7 @@ impl<'a, 'tcx> Visitor<'tcx> for InitializeVisitor<'a, 'tcx> {
2095
2095
// Look for declarations of the variable
2096
2096
if let StmtKind :: Local ( ref local) = stmt. node {
2097
2097
if local. pat . id == self . var_id {
2098
- if let PatKind :: Binding ( _ , _ , ident, _) = local. pat . node {
2098
+ if let PatKind :: Binding ( .. , ident, _) = local. pat . node {
2099
2099
self . name = Some ( ident. name ) ;
2100
2100
2101
2101
self . state = if let Some ( ref init) = local. init {
@@ -2286,7 +2286,7 @@ impl<'tcx> Visitor<'tcx> for LoopNestVisitor {
2286
2286
if self . nesting != Unknown {
2287
2287
return ;
2288
2288
}
2289
- if let PatKind :: Binding ( _ , _ , span_name, _) = pat. node {
2289
+ if let PatKind :: Binding ( .. , span_name, _) = pat. node {
2290
2290
if self . iterator == span_name. name {
2291
2291
self . nesting = RuledOut ;
2292
2292
return ;
0 commit comments