syntax: Rename expr_alt to expr_match
This commit is contained in:
parent
92ef17aaeb
commit
bc267c696c
19 changed files with 25 additions and 25 deletions
|
@ -6,7 +6,7 @@ import ast_util::operator_prec;
|
|||
|
||||
fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
|
||||
match e.node {
|
||||
ast::expr_if(_, _, _) | ast::expr_alt(_, _, _) | ast::expr_block(_)
|
||||
ast::expr_if(_, _, _) | ast::expr_match(_, _, _) | ast::expr_block(_)
|
||||
| ast::expr_while(_, _) | ast::expr_loop(_)
|
||||
| ast::expr_call(_, _, true) => false,
|
||||
_ => true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue