Removing support for the do syntax from libsyntax and librustc.
Fixes #10815.
This commit is contained in:
parent
221670b5bc
commit
a6867e259b
17 changed files with 48 additions and 212 deletions
|
@ -29,9 +29,7 @@ pub fn expr_requires_semi_to_be_stmt(e: @ast::Expr) -> bool {
|
|||
| ast::ExprWhile(..)
|
||||
| ast::ExprLoop(..)
|
||||
| ast::ExprForLoop(..)
|
||||
| ast::ExprCall(_, _, ast::DoSugar)
|
||||
| ast::ExprCall(_, _, ast::ForSugar)
|
||||
| ast::ExprMethodCall(_, _, _, _, ast::DoSugar)
|
||||
| ast::ExprMethodCall(_, _, _, _, ast::ForSugar) => false,
|
||||
_ => true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue