AST refactor: make the place in ExprBox an option.
This is to allow us to migrate away from UnUniq in a followup commit, and thus unify the code paths related to all forms of `box`.
This commit is contained in:
parent
41f5907fa6
commit
7d4e7f0795
11 changed files with 35 additions and 25 deletions
|
|
@ -696,7 +696,7 @@ pub struct Expr {
|
|||
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
|
||||
pub enum Expr_ {
|
||||
/// First expr is the place; second expr is the value.
|
||||
ExprBox(P<Expr>, P<Expr>),
|
||||
ExprBox(Option<P<Expr>>, P<Expr>),
|
||||
ExprVec(Vec<P<Expr>>),
|
||||
ExprCall(P<Expr>, Vec<P<Expr>>),
|
||||
ExprMethodCall(SpannedIdent, Vec<P<Ty>>, Vec<P<Expr>>),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue