@@ -3,8 +3,8 @@ if_chain! {
33 if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
44 if let PatKind::Binding(BindingAnnotation::Unannotated, _, name, None) = pat.kind;
55 if name.as_str() == "y";
6- if let ExprKind::Struct(ref path , ref fields, None) = arg.kind;
7- if matches!(path , QPath::LangItem(LangItem::Range, _));
6+ if let ExprKind::Struct(ref qpath , ref fields, None) = arg.kind;
7+ if matches!(qpath , QPath::LangItem(LangItem::Range, _));
88 if fields.len() == 2;
99 if fields[0].ident.name.as_str() == "start"
1010 if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -16,8 +16,8 @@ if_chain! {
1616 if block.stmts.len() == 1;
1717 if let StmtKind::Local(ref local) = block.stmts[0].kind;
1818 if let Some(ref init) = local.init;
19- if let ExprKind::Path(ref path1 ) = init.kind;
20- if match_qpath(path1 , &["y"]);
19+ if let ExprKind::Path(ref qpath1 ) = init.kind;
20+ if match_qpath(qpath1 , &["y"]);
2121 if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local.pat.kind;
2222 if name1.as_str() == "z";
2323 if block.expr.is_none();
@@ -29,8 +29,8 @@ if_chain! {
2929 if let ExprKind::DropTemps(ref expr) = expr.kind;
3030 if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
3131 if let PatKind::Wild = pat.kind;
32- if let ExprKind::Struct(ref path , ref fields, None) = arg.kind;
33- if matches!(path , QPath::LangItem(LangItem::Range, _));
32+ if let ExprKind::Struct(ref qpath , ref fields, None) = arg.kind;
33+ if matches!(qpath , QPath::LangItem(LangItem::Range, _));
3434 if fields.len() == 2;
3535 if fields[0].ident.name.as_str() == "start"
3636 if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -51,8 +51,8 @@ if_chain! {
5151 if let ExprKind::DropTemps(ref expr) = expr.kind;
5252 if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
5353 if let PatKind::Wild = pat.kind;
54- if let ExprKind::Struct(ref path , ref fields, None) = arg.kind;
55- if matches!(path , QPath::LangItem(LangItem::Range, _));
54+ if let ExprKind::Struct(ref qpath , ref fields, None) = arg.kind;
55+ if matches!(qpath , QPath::LangItem(LangItem::Range, _));
5656 if fields.len() == 2;
5757 if fields[0].ident.name.as_str() == "start"
5858 if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -73,8 +73,8 @@ if_chain! {
7373}
7474if_chain! {
7575 if let Some(higher::While { condition: condition, body: body }) = higher::While::hir(expr)
76- if let ExprKind::Path(ref path ) = condition.kind;
77- if match_qpath(path , &["a"]);
76+ if let ExprKind::Path(ref qpath ) = condition.kind;
77+ if match_qpath(qpath , &["a"]);
7878 if let ExprKind::Block(ref block, ref label) = body.kind;
7979 if block.stmts.len() == 1;
8080 if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
@@ -89,8 +89,8 @@ if_chain! {
8989 if let PatKind::Lit(ref lit_expr) = let_pat.kind
9090 if let ExprKind::Lit(ref lit) = lit_expr.kind;
9191 if let LitKind::Bool(true) = lit.node;
92- if let ExprKind::Path(ref path ) = let_expr.kind;
93- if match_qpath(path , &["a"]);
92+ if let ExprKind::Path(ref qpath ) = let_expr.kind;
93+ if match_qpath(qpath , &["a"]);
9494 if let ExprKind::Block(ref block, ref label) = if_then.kind;
9595 if block.stmts.len() == 1;
9696 if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
0 commit comments