diff options
| author | Graydon Hoare <[email protected]> | 2011-05-09 17:49:19 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-09 17:50:06 -0700 |
| commit | 4539f8a03cfa85fae97140687bc8ed2e48d91a65 (patch) | |
| tree | f2ec0e7aec963b1ed58304567b30d0c7bc8494ab /src/comp/util/common.rs | |
| parent | rustc: Give our upcall definitions the right values (diff) | |
| download | rust-4539f8a03cfa85fae97140687bc8ed2e48d91a65.tar.xz rust-4539f8a03cfa85fae97140687bc8ed2e48d91a65.zip | |
Alias-ify fold and its users, remove another 85kb.
Diffstat (limited to 'src/comp/util/common.rs')
| -rw-r--r-- | src/comp/util/common.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index b1a39893..2c4dcd26 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -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)); } |