summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2017-01-15 23:36:10 -0800
committerScott Olson <scott@solson.me>2017-01-16 00:45:51 -0800
commita9f8f98caabbe388b576f1c277cff51253db6b44 (patch)
tree689a3cfc214a85c33024c50d36a3c8346ce52148 /src/libsyntax/ext
parentff591b6dc0e0a107c778d0bb4cf103881527e1a5 (diff)
downloadrust-a9f8f98caabbe388b576f1c277cff51253db6b44.tar.gz
rust-a9f8f98caabbe388b576f1c277cff51253db6b44.zip
Rename ExprKind::Vec to Array in HIR and HAIR.
This is a clearer name since they represent [a, b, c] array literals.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/build.rs2
1 files changed, 1 insertions, 1 deletions
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<ast::Expr>>) -> P<ast::Expr> {
-        self.expr(sp, ast::ExprKind::Vec(exprs))
+        self.expr(sp, ast::ExprKind::Array(exprs))
     }
     fn expr_vec_ng(&self, sp: Span) -> P<ast::Expr> {
         self.expr_call_global(sp, self.std_path(&["vec", "Vec", "new"]),