1
Fork 0

For #2229, recognize 'again' in place of 'cont', final change pending snapshot.

This commit is contained in:
Graydon Hoare 2012-07-06 15:46:31 -07:00
parent e20f63d095
commit ceac155211
19 changed files with 34 additions and 34 deletions

View file

@ -464,7 +464,7 @@ fn noop_fold_expr(e: expr_, fld: ast_fold) -> expr_ {
}
expr_path(pth) { expr_path(fld.fold_path(pth)) }
expr_fail(e) { expr_fail(option::map(e, fld.fold_expr)) }
expr_break | expr_cont { copy e }
expr_break | expr_again { copy e }
expr_ret(e) { expr_ret(option::map(e, fld.fold_expr)) }
expr_log(i, lv, e) { expr_log(i, fld.fold_expr(lv),
fld.fold_expr(e)) }