or-patterns: fix pprust-expr-roundtrip due to AST change.
This commit is contained in:
parent
be95dee5a1
commit
d70b0c5d42
1 changed files with 3 additions and 3 deletions
|
@ -150,12 +150,12 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
|
||||||
iter_exprs(depth - 1, &mut |e| g(ExprKind::Try(e)));
|
iter_exprs(depth - 1, &mut |e| g(ExprKind::Try(e)));
|
||||||
},
|
},
|
||||||
19 => {
|
19 => {
|
||||||
let ps = vec![P(Pat {
|
let pat = P(Pat {
|
||||||
id: DUMMY_NODE_ID,
|
id: DUMMY_NODE_ID,
|
||||||
node: PatKind::Wild,
|
node: PatKind::Wild,
|
||||||
span: DUMMY_SP,
|
span: DUMMY_SP,
|
||||||
})];
|
});
|
||||||
iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(ps.clone(), e)))
|
iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(pat.clone(), e)))
|
||||||
},
|
},
|
||||||
_ => panic!("bad counter value in iter_exprs"),
|
_ => panic!("bad counter value in iter_exprs"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue