diff options
| author | Ms2ger <Ms2ger@gmail.com> | 2015-12-18 14:23:01 +0100 |
|---|---|---|
| committer | Ms2ger <Ms2ger@gmail.com> | 2015-12-20 22:15:26 +0100 |
| commit | 143b9d80d06c314b8cdf5c35ea9b6661006ee6c6 (patch) | |
| tree | baa456a3b18bf99ae6e88db63ea6852a0ec79a60 /src/libsyntax/ast.rs | |
| parent | f963eb2870f6e2b972cd9d432dc0ece954ab6452 (diff) | |
| download | rust-143b9d80d06c314b8cdf5c35ea9b6661006ee6c6.tar.gz rust-143b9d80d06c314b8cdf5c35ea9b6661006ee6c6.zip | |
Stop re-exporting the ast::BindingMode variants.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index de5595eebee..89655c5c39e 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -10,7 +10,6 @@ // The Rust abstract syntax tree. -pub use self::BindingMode::*; pub use self::BinOp_::*; pub use self::BlockCheckMode::*; pub use self::CaptureClause::*; @@ -575,8 +574,8 @@ pub struct FieldPat { #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] pub enum BindingMode { - BindByRef(Mutability), - BindByValue(Mutability), + ByRef(Mutability), + ByValue(Mutability), } #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] @@ -1655,7 +1654,7 @@ impl Arg { }), pat: P(Pat { id: DUMMY_NODE_ID, - node: PatIdent(BindByValue(mutability), path, None), + node: PatIdent(BindingMode::ByValue(mutability), path, None), span: span }), id: DUMMY_NODE_ID |
