Skip to content

Commit e56b697

Browse files
committed
Fix test
1 parent 40bc7a7 commit e56b697

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fn expr(kind: ExprKind) -> P<Expr> {
5555
kind,
5656
span: DUMMY_SP,
5757
attrs: ThinVec::new(),
58+
tokens: None
5859
})
5960
}
6061

@@ -111,6 +112,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
111112
id: DUMMY_NODE_ID,
112113
rules: BlockCheckMode::Default,
113114
span: DUMMY_SP,
115+
tokens: None
114116
});
115117
iter_exprs(depth - 1, &mut |e| g(ExprKind::If(e, block.clone(), None)));
116118
},
@@ -162,6 +164,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
162164
id: DUMMY_NODE_ID,
163165
kind: PatKind::Wild,
164166
span: DUMMY_SP,
167+
tokens: None
165168
});
166169
iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(pat.clone(), e)))
167170
},
@@ -199,6 +202,7 @@ impl MutVisitor for AddParens {
199202
kind: ExprKind::Paren(e),
200203
span: DUMMY_SP,
201204
attrs: ThinVec::new(),
205+
tokens: None
202206
})
203207
});
204208
}

0 commit comments

Comments
 (0)