syntax: remove most code handling old-style syntax extensions.
This commit is contained in:
@@ -120,14 +120,7 @@ fn fold_arg_(a: arg, fld: ast_fold) -> arg {
|
||||
fn fold_mac_(m: mac, fld: ast_fold) -> mac {
|
||||
return {node:
|
||||
match m.node {
|
||||
mac_invoc(pth, arg, body) => {
|
||||
mac_invoc(fld.fold_path(pth),
|
||||
option::map(&arg, |x| fld.fold_expr(*x)), body)
|
||||
}
|
||||
mac_invoc_tt(*) => m.node,
|
||||
mac_ellipsis => mac_ellipsis,
|
||||
mac_aq(_,_) => /* FIXME (#2543) */ copy m.node,
|
||||
mac_var(_) => /* FIXME (#2543) */ copy m.node,
|
||||
},
|
||||
span: fld.new_span(m.span)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user