@@ -3,8 +3,8 @@ if_chain! {
3
3
if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
4
4
if let PatKind::Binding(BindingAnnotation::Unannotated, _, name, None) = pat.kind;
5
5
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, _));
8
8
if fields.len() == 2;
9
9
if fields[0].ident.name.as_str() == "start"
10
10
if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -16,8 +16,8 @@ if_chain! {
16
16
if block.stmts.len() == 1;
17
17
if let StmtKind::Local(ref local) = block.stmts[0].kind;
18
18
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"]);
21
21
if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local.pat.kind;
22
22
if name1.as_str() == "z";
23
23
if block.expr.is_none();
@@ -29,8 +29,8 @@ if_chain! {
29
29
if let ExprKind::DropTemps(ref expr) = expr.kind;
30
30
if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
31
31
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, _));
34
34
if fields.len() == 2;
35
35
if fields[0].ident.name.as_str() == "start"
36
36
if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -51,8 +51,8 @@ if_chain! {
51
51
if let ExprKind::DropTemps(ref expr) = expr.kind;
52
52
if let Some(higher::ForLoop { pat: pat, arg: arg, body: body, ..}) = higher::ForLoop::hir(expr)
53
53
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, _));
56
56
if fields.len() == 2;
57
57
if fields[0].ident.name.as_str() == "start"
58
58
if let ExprKind::Lit(ref lit) = fields[0].kind;
@@ -73,8 +73,8 @@ if_chain! {
73
73
}
74
74
if_chain! {
75
75
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"]);
78
78
if let ExprKind::Block(ref block, ref label) = body.kind;
79
79
if block.stmts.len() == 1;
80
80
if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
@@ -89,8 +89,8 @@ if_chain! {
89
89
if let PatKind::Lit(ref lit_expr) = let_pat.kind
90
90
if let ExprKind::Lit(ref lit) = lit_expr.kind;
91
91
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"]);
94
94
if let ExprKind::Block(ref block, ref label) = if_then.kind;
95
95
if block.stmts.len() == 1;
96
96
if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
0 commit comments