1
Fork 0

libsyntax: Remove struct literal expressions from the compiler

This commit is contained in:
Patrick Walton 2013-03-05 18:22:13 -08:00
parent 4e3dbfe052
commit 954ae9c975
19 changed files with 24 additions and 143 deletions

View file

@ -479,12 +479,6 @@ pub fn noop_fold_expr(e: &expr_, fld: @ast_fold) -> expr_ {
expr_repeat(expr, count, mutt) => {
expr_repeat(fld.fold_expr(expr), fld.fold_expr(count), mutt)
}
expr_rec(ref fields, maybe_expr) => {
expr_rec(
fields.map(|x| fold_field(*x)),
maybe_expr.map(|x| fld.fold_expr(*x))
)
}
expr_tup(ref elts) => expr_tup(elts.map(|x| fld.fold_expr(*x))),
expr_call(f, ref args, blk) => {
expr_call(