diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-08 13:21:29 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-11 12:34:48 +0100 |
| commit | f875f4c4c24e8a14c04bbe4eedd230c4aa3c1431 (patch) | |
| tree | 49aa5846267f8660ddf5c1a69e87348a1ea30081 /src/libsyntax/ext | |
| parent | 060848c31534284ed06cd63c5dbb41e2e839d2b0 (diff) | |
| download | rust-f875f4c4c24e8a14c04bbe4eedd230c4aa3c1431.tar.gz rust-f875f4c4c24e8a14c04bbe4eedd230c4aa3c1431.zip | |
[breaking-change] don't glob export ast::UnOp variants
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index a74c2340cec..2ce2e7f71f3 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -10,6 +10,7 @@ use abi; use ast::{Ident, Generics, Expr}; +use ast::UnOp; use ast; use attr; use codemap::{Span, respan, Spanned, DUMMY_SP, Pos}; @@ -610,7 +611,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { } fn expr_deref(&self, sp: Span, e: P<ast::Expr>) -> P<ast::Expr> { - self.expr_unary(sp, ast::UnDeref, e) + self.expr_unary(sp, UnOp::Deref, e) } fn expr_unary(&self, sp: Span, op: ast::UnOp, e: P<ast::Expr>) -> P<ast::Expr> { self.expr(sp, ast::ExprUnary(op, e)) |
