about summary refs log tree commit diff
path: root/src/libsyntax_expand
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-11-23 14:15:49 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2019-11-24 18:06:13 +0000
commita8efd31f2b97a043d73db2131dddfedd65485d50 (patch)
treed5eef5952391f5bf162f3ce4a4470255157843f0 /src/libsyntax_expand
parent9420ff4c0ebea44b167d530bb59f9d5721d8ff0b (diff)
downloadrust-a8efd31f2b97a043d73db2131dddfedd65485d50.tar.gz
rust-a8efd31f2b97a043d73db2131dddfedd65485d50.zip
Add raw address of expressions to the AST and HIR
Diffstat (limited to 'src/libsyntax_expand')
-rw-r--r--src/libsyntax_expand/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_expand/build.rs b/src/libsyntax_expand/build.rs
index 7fe37f377a8..3d082101c41 100644
--- a/src/libsyntax_expand/build.rs
+++ b/src/libsyntax_expand/build.rs
@@ -270,7 +270,7 @@ impl<'a> ExtCtxt<'a> {
     }
 
     pub fn expr_addr_of(&self, sp: Span, e: P<ast::Expr>) -> P<ast::Expr> {
-        self.expr(sp, ast::ExprKind::AddrOf(ast::Mutability::Immutable, e))
+        self.expr(sp, ast::ExprKind::AddrOf(ast::BorrowKind::Ref, ast::Mutability::Immutable, e))
     }
 
     pub fn expr_call(