1
1
if_chain! {
2
2
if let ExprKind::Block(ref block) = expr.node;
3
3
if let StmtKind::Decl(ref decl, _) = block.node
4
- if let Decl_::DeclLocal (ref local) = decl.node;
4
+ if let DeclKind::Local (ref local) = decl.node;
5
5
if let Some(ref init) = local.init
6
6
if let ExprKind::Match(ref expr, ref arms, MatchSource::ForLoopDesugar) = init.node;
7
7
if let ExprKind::Call(ref func, ref args) = expr.node;
@@ -15,7 +15,7 @@ if_chain! {
15
15
if arms.len() == 1;
16
16
if let ExprKind::Loop(ref body, ref label, LoopSource::ForLoop) = arms[0].body.node;
17
17
if let StmtKind::Decl(ref decl1, _) = body.node
18
- if let Decl_::DeclLocal (ref local1) = decl1.node;
18
+ if let DeclKind::Local (ref local1) = decl1.node;
19
19
if let PatKind::Binding(BindingAnnotation::Mutable, _, name, None) = local1.pat.node;
20
20
if name.node.as_str() == "__next";
21
21
if let StmtKind::Expr(ref e, _) = local1.pat.node
@@ -43,7 +43,7 @@ if_chain! {
43
43
if let PatKind::Path(ref path7) = arms1[1].pats[0].node;
44
44
if match_qpath(path7, &["{{root}}", "std", "option", "Option", "None"]);
45
45
if let StmtKind::Decl(ref decl2, _) = path7.node
46
- if let Decl_::DeclLocal (ref local2) = decl2.node;
46
+ if let DeclKind::Local (ref local2) = decl2.node;
47
47
if let Some(ref init1) = local2.init
48
48
if let ExprKind::Path(ref path8) = init1.node;
49
49
if match_qpath(path8, &["__next"]);
@@ -52,7 +52,7 @@ if_chain! {
52
52
if let StmtKind::Expr(ref e1, _) = local2.pat.node
53
53
if let ExprKind::Block(ref block1) = e1.node;
54
54
if let StmtKind::Decl(ref decl3, _) = block1.node
55
- if let Decl_::DeclLocal (ref local3) = decl3.node;
55
+ if let DeclKind::Local (ref local3) = decl3.node;
56
56
if let Some(ref init2) = local3.init
57
57
if let ExprKind::Path(ref path9) = init2.node;
58
58
if match_qpath(path9, &["y"]);
0 commit comments