Skip to content

Commit d70b0c5

Browse files
committed
or-patterns: fix pprust-expr-roundtrip due to AST change.
1 parent be95dee commit d70b0c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/ui-fulldeps/pprust-expr-roundtrip.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
150150
iter_exprs(depth - 1, &mut |e| g(ExprKind::Try(e)));
151151
},
152152
19 => {
153-
let ps = vec![P(Pat {
153+
let pat = P(Pat {
154154
id: DUMMY_NODE_ID,
155155
node: PatKind::Wild,
156156
span: DUMMY_SP,
157-
})];
158-
iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(ps.clone(), e)))
157+
});
158+
iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(pat.clone(), e)))
159159
},
160160
_ => panic!("bad counter value in iter_exprs"),
161161
}

0 commit comments

Comments
 (0)