1
Fork 0

rustc: Max/min classes: Add struct literal syntax

This commit is contained in:
Patrick Walton 2012-07-23 16:39:18 -07:00
parent ee2abc1cae
commit df4db83ed8
9 changed files with 98 additions and 43 deletions

View file

@ -467,6 +467,9 @@ fn noop_fold_expr(e: expr_, fld: ast_fold) -> expr_ {
fld.fold_expr(e)) }
expr_assert(e) { expr_assert(fld.fold_expr(e)) }
expr_mac(mac) { expr_mac(fold_mac(mac)) }
expr_struct(path, fields) {
expr_struct(fld.fold_path(path), vec::map(fields, fold_field))
}
}
}