diff options
| author | Patrick Walton <[email protected]> | 2011-03-18 15:18:45 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-18 15:18:45 -0700 |
| commit | 47d650e25bbc9c6ce4a062142f9682b8010bb4da (patch) | |
| tree | ae7381938f0f4da05ec27bbd6adb386670a8774b /src/comp/middle | |
| parent | rustc: Get type params from the item when translating native items (diff) | |
| download | rust-47d650e25bbc9c6ce4a062142f9682b8010bb4da.tar.xz rust-47d650e25bbc9c6ce4a062142f9682b8010bb4da.zip | |
rustc: Box the tuples returned by hashmap.items() for now since we don't have alias iterators yet
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index f06789f4..90a26cc5 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -5698,7 +5698,7 @@ fn find_main_fn(@crate_ctxt cx) -> ValueRef { auto e = sep() + "main"; let ValueRef v = C_nil(); let uint n = 0u; - for each (tup(str,ValueRef) i in cx.item_names.items()) { + for each (@tup(str,ValueRef) i in cx.item_names.items()) { if (_str.ends_with(i._0, e)) { n += 1u; v = i._1; |