diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-09-24 18:00:08 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-09-24 18:00:08 +0300 |
| commit | f293ea28b4beb5821feedc862619ec539f742cc3 (patch) | |
| tree | 4dae59234f4962fa2952b70995967c4792287a52 /src/libsyntax/ast.rs | |
| parent | 07ca1ab1ec32ac99a61312ec07d66db5f3657040 (diff) | |
| download | rust-f293ea28b4beb5821feedc862619ec539f742cc3.tar.gz rust-f293ea28b4beb5821feedc862619ec539f742cc3.zip | |
Remove the deprecated box(PLACE) syntax.
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 62eb6022d0c..db7d77e5454 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -680,8 +680,6 @@ pub type BinOp = Spanned<BinOp_>; #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)] pub enum UnOp { - /// The `box` operator - UnUniq, /// The `*` operator for dereferencing UnDeref, /// The `!` operator for logical inversion @@ -799,8 +797,10 @@ impl fmt::Debug for Expr { #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)] pub enum Expr_ { + /// A `box x` expression. + ExprBox(P<Expr>), /// First expr is the place; second expr is the value. - ExprBox(Option<P<Expr>>, P<Expr>), + ExprInPlace(P<Expr>, P<Expr>), /// An array (`[a, b, c, d]`) ExprVec(Vec<P<Expr>>), /// A function call |
