mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
or-patterns: fix pprust-expr-roundtrip due to AST change.
This commit is contained in:
parent
be95dee5a1
commit
d70b0c5d42
@ -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)));
|
||||
},
|
||||
19 => {
|
||||
let ps = vec![P(Pat {
|
||||
let pat = P(Pat {
|
||||
id: DUMMY_NODE_ID,
|
||||
node: PatKind::Wild,
|
||||
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"),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user