From a9f8f98caabbe388b576f1c277cff51253db6b44 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 15 Jan 2017 23:36:10 -0800 Subject: Rename ExprKind::Vec to Array in HIR and HAIR. This is a clearer name since they represent [a, b, c] array literals. --- src/libsyntax/ext/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 688df96ffa3..8c4b56b7fc0 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -745,7 +745,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { } fn expr_vec(&self, sp: Span, exprs: Vec>) -> P { - self.expr(sp, ast::ExprKind::Vec(exprs)) + self.expr(sp, ast::ExprKind::Array(exprs)) } fn expr_vec_ng(&self, sp: Span) -> P { self.expr_call_global(sp, self.std_path(&["vec", "Vec", "new"]), -- cgit 1.4.1-3-g733a5