convert ast::blk_ into a struct
This commit is contained in:
parent
0b9e23146b
commit
3ea3136e84
8 changed files with 108 additions and 65 deletions
|
@ -30,8 +30,9 @@ fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool {
|
|||
|
||||
fn expr_is_simple_block(e: @ast::expr) -> bool {
|
||||
match e.node {
|
||||
ast::expr_block(ast::spanned {node: {rules: ast::default_blk, _}, _}) =>
|
||||
true,
|
||||
ast::expr_block(
|
||||
ast::spanned { node: ast::blk_ { rules: ast::default_blk, _ }, _ }
|
||||
) => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue