about summary refs log tree commit diff
path: root/src/libsyntax_expand
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-25 01:20:38 +0000
committerbors <bors@rust-lang.org>2019-11-25 01:20:38 +0000
commitc9bacb70f0b19d324a548bd7942692ab18d159a4 (patch)
tree66f7ee078e270f46163da47516b38139204476bb /src/libsyntax_expand
parent388ffd9df83cfac20b3fbf7128eb44d5b1526f8c (diff)
parentf4efc5de8a91c8322f83fe07ced5ab119a457ade (diff)
Auto merge of #66671 - matthewjasper:ast-address-of, r=Centril
Ast address-of

This is the parts of #64588 that don't affect MIR. If an address-of expression makes it to MIR lowering we error and lower to the best currently expressible approximation to limit further errors.

r? @Centril
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(