Convert ast::{pat,field_pat,local_,arm} into structs
This commit is contained in:
@@ -312,9 +312,9 @@ fn ident_to_path(s: span, +i: ident) -> @path {
|
||||
}
|
||||
|
||||
fn ident_to_pat(id: node_id, s: span, +i: ident) -> @pat {
|
||||
@{id: id,
|
||||
node: pat_ident(bind_by_value, ident_to_path(s, i), None),
|
||||
span: s}
|
||||
@ast::pat { id: id,
|
||||
node: pat_ident(bind_by_value, ident_to_path(s, i), None),
|
||||
span: s }
|
||||
}
|
||||
|
||||
pure fn is_unguarded(a: &arm) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user