about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-03 06:58:09 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-09-05 08:33:09 +0200
commitd70b0c5d42e9c3cf6580a399c30d87fde48c1919 (patch)
tree6832252b0bb528e0dd4ab9e8360b7e2ac8218540 /src
parentbe95dee5a11126f3da96d59c9bdbcc1874c82007 (diff)
downloadrust-d70b0c5d42e9c3cf6580a399c30d87fde48c1919.tar.gz
rust-d70b0c5d42e9c3cf6580a399c30d87fde48c1919.zip
or-patterns: fix pprust-expr-roundtrip due to AST change.
Diffstat (limited to 'src')
-rw-r--r--src/test/ui-fulldeps/pprust-expr-roundtrip.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui-fulldeps/pprust-expr-roundtrip.rs b/src/test/ui-fulldeps/pprust-expr-roundtrip.rs
index 09f58521e5d..b4c154e5d95 100644
--- a/src/test/ui-fulldeps/pprust-expr-roundtrip.rs
+++ b/src/test/ui-fulldeps/pprust-expr-roundtrip.rs
@@ -150,12 +150,12 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
                 iter_exprs(depth - 1, &mut |e| g(ExprKind::Try(e)));
             },
             19 => {
-                let ps = vec![P(Pat {
+                let pat = P(Pat {
                     id: DUMMY_NODE_ID,
                     node: PatKind::Wild,
                     span: DUMMY_SP,
-                })];
-                iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(ps.clone(), e)))
+                });
+                iter_exprs(depth - 1, &mut |e| g(ExprKind::Let(pat.clone(), e)))
             },
             _ => panic!("bad counter value in iter_exprs"),
         }