1
Fork 0

[breaking-change] don't glob export ast::CaptureClause variants

This commit is contained in:
Oliver Schneider 2016-02-08 15:27:08 +01:00
parent 243a30c931
commit 8516ba367d
5 changed files with 17 additions and 17 deletions

View file

@ -10,7 +10,6 @@
// The Rust abstract syntax tree.
pub use self::CaptureClause::*;
pub use self::Decl_::*;
pub use self::ExplicitSelf_::*;
pub use self::Expr_::*;
@ -973,7 +972,7 @@ pub enum Expr_ {
/// A `match` block.
ExprMatch(P<Expr>, Vec<Arm>),
/// A closure (for example, `move |a, b, c| {a + b + c}`)
ExprClosure(CaptureClause, P<FnDecl>, P<Block>),
ExprClosure(CaptureBy, P<FnDecl>, P<Block>),
/// A block (`{ ... }`)
ExprBlock(P<Block>),
@ -1052,10 +1051,11 @@ pub struct QSelf {
pub position: usize
}
/// A capture clause
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
pub enum CaptureClause {
CaptureByValue,
CaptureByRef,
pub enum CaptureBy {
Value,
Ref,
}
/// A delimited sequence of token trees