diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-08 15:27:08 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-11 12:34:48 +0100 |
| commit | 8516ba367d1f51318ce373fe9b60650c82ded1e9 (patch) | |
| tree | d3feaa20d76319d79526412296665d504c062345 /src/libsyntax/parse | |
| parent | 243a30c9319b56e1be2b9ff2f9ed9e0d7583e2d1 (diff) | |
| download | rust-8516ba367d1f51318ce373fe9b60650c82ded1e9.tar.gz rust-8516ba367d1f51318ce373fe9b60650c82ded1e9.zip | |
[breaking-change] don't glob export ast::CaptureClause variants
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b10c42c4b0e..c149f1f62b0 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -16,7 +16,7 @@ use ast::{RegionTyParamBound, TraitTyParamBound, TraitBoundModifier}; use ast::{Public, Unsafety}; use ast::{Mod, Arg, Arm, Attribute, BindingMode}; use ast::Block; -use ast::{BlockCheckMode, CaptureByRef, CaptureByValue, CaptureClause}; +use ast::{BlockCheckMode, CaptureBy}; use ast::{Constness, ConstTraitItem, Crate, CrateConfig}; use ast::{Decl, DeclItem, DeclLocal}; use ast::{EMPTY_CTXT, EnumDef, ExplicitSelf}; @@ -2108,7 +2108,7 @@ impl<'a> Parser<'a> { }, token::BinOp(token::Or) | token::OrOr => { let lo = self.span.lo; - return self.parse_lambda_expr(lo, CaptureByRef, attrs); + return self.parse_lambda_expr(lo, CaptureBy::Ref, attrs); }, token::Ident(id @ ast::Ident { name: token::SELF_KEYWORD_NAME, @@ -2167,7 +2167,7 @@ impl<'a> Parser<'a> { } if self.eat_keyword(keywords::Move) { let lo = self.last_span.lo; - return self.parse_lambda_expr(lo, CaptureByValue, attrs); + return self.parse_lambda_expr(lo, CaptureBy::Value, attrs); } if self.eat_keyword(keywords::If) { return self.parse_if_expr(attrs); @@ -3047,7 +3047,7 @@ impl<'a> Parser<'a> { // `|args| expr` pub fn parse_lambda_expr(&mut self, lo: BytePos, - capture_clause: CaptureClause, + capture_clause: CaptureBy, attrs: ThinAttributes) -> PResult<'a, P<Expr>> { |
