]> git.lizzy.rs Git - rust.git/commitdiff
Fix pprust-expr-roundtrip
authorAaron Hill <aa1ronham@gmail.com>
Wed, 10 Jun 2020 00:25:47 +0000 (20:25 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Wed, 10 Jun 2020 21:30:11 +0000 (17:30 -0400)
src/test/ui-fulldeps/pprust-expr-roundtrip.rs

index cef600bed5fd729eaaa726555fd810ba853b3d6e..6da26e6cfbe410eefdc1b28d06e38e6e14950efb 100644 (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 {