From a8efd31f2b97a043d73db2131dddfedd65485d50 Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Sat, 23 Nov 2019 14:15:49 +0000 Subject: Add raw address of expressions to the AST and HIR --- src/libsyntax_expand/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax_expand') 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) -> P { - 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( -- cgit 1.4.1-3-g733a5