Alias-ify fold and its users, remove another 85kb.

This commit is contained in:
Graydon Hoare
2011-05-09 17:49:19 -07:00
parent cfcc8678e5
commit 4539f8a03c
6 changed files with 378 additions and 357 deletions

View File

@@ -252,12 +252,12 @@ fn has_nonlocal_exits(&ast.block b) -> bool {
/* overkill, but just passing around a mutable bool doesn't seem
to work in rustboot */
auto has_exits = new_str_hash[()]();
fn set_break(&flag f, &span sp, ast.ann a) -> @ast.expr {
fn set_break(&flag f, &span sp, &ast.ann a) -> @ast.expr {
f.insert("foo", ());
ret @respan(sp, ast.expr_break(a));
}
fn set_cont(&flag f, &span sp, ast.ann a) -> @ast.expr {
fn set_cont(&flag f, &span sp, &ast.ann a) -> @ast.expr {
f.insert("foo", ());
ret @respan(sp, ast.expr_cont(a));
}