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
1 changed files with 2 additions and 2 deletions

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 {