]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/build.rs
Rename ExprKind::Vec to Array in HIR and HAIR.
[rust.git] / src / libsyntax / ext / build.rs
index 688df96ffa32fcfde245a767a0aa69001b243acc..8c4b56b7fc0276f0c596faf69d96fe6f60d5f7b8 100644 (file)
@@ -745,7 +745,7 @@ fn expr_bool(&self, sp: Span, value: bool) -> P<ast::Expr> {
     }
 
     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"]),