Search continue in return expr.

This commit is contained in:
uHOOCCOOHu 2017-07-05 09:55:37 +08:00
parent a80db63515
commit 14a1a08b5e
No known key found for this signature in database
GPG key ID: 395939F0A802FC4B

View file

@ -466,6 +466,7 @@ fn contains_continue_decl(decl: &Decl, dest: &NodeId) -> bool {
fn contains_continue_expr(expr: &Expr, dest: &NodeId) -> bool {
match expr.node {
ExprRet(Some(ref e)) |
ExprBox(ref e) |
ExprUnary(_, ref e) |
ExprCast(ref e, _) |