Desugar 'if let' into the appropriate 'match'

This commit is contained in:
Kevin Ballard 2014-08-24 19:08:48 -07:00 committed by Jakub Wieczorek
parent 5d8cfd53b5
commit 0e6ff432dc
9 changed files with 108 additions and 1 deletions

View file

@ -222,6 +222,8 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
self.add_node(expr.id, [then_exit, else_exit]) // 4, 5
}
ast::ExprIfLet(..) => fail!("non-desugared ExprIfLet"),
ast::ExprWhile(ref cond, ref body, _) => {
//
// [pred]