1
Fork 0

Fix pprust-expr-roundtrip

This commit is contained in:
Aaron Hill 2020-06-09 20:25:47 -04:00
parent 6e4d0b4205
commit f69a2a6cbd
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -84,9 +84,9 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
2 => {
let seg = PathSegment::from_ident(Ident::from_str("x"));
iter_exprs(depth - 1, &mut |e| g(ExprKind::MethodCall(
seg.clone(), vec![e, make_x()])));
seg.clone(), vec![e, make_x()], DUMMY_SP)));
iter_exprs(depth - 1, &mut |e| g(ExprKind::MethodCall(
seg.clone(), vec![make_x(), e])));
seg.clone(), vec![make_x(), e], DUMMY_SP)));
},
3..=8 => {
let op = Spanned {