Teach libsyntax about if let

This commit is contained in:
Kevin Ballard
2014-08-24 18:04:29 -07:00
committed by Jakub Wieczorek
parent 38015eeb70
commit 5d8cfd53b5
6 changed files with 71 additions and 13 deletions

View File

@@ -521,6 +521,7 @@ pub enum Expr_ {
ExprLit(P<Lit>),
ExprCast(P<Expr>, P<Ty>),
ExprIf(P<Expr>, P<Block>, Option<P<Expr>>),
ExprIfLet(P<Pat>, P<Expr>, P<Block>, Option<P<Expr>>),
// FIXME #6993: change to Option<Name> ... or not, if these are hygienic.
ExprWhile(P<Expr>, P<Block>, Option<Ident>),
// FIXME #6993: change to Option<Name> ... or not, if these are hygienic.