diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-05-14 10:15:22 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-05-14 11:03:10 -0700 |
| commit | 8b3f3594424200b28f0297b7b7024ecdbf79e665 (patch) | |
| tree | 8e285c5993a094caaec09abbd8bd076abcf5d9d6 /src/comp/middle | |
| parent | ec30c71296fa428512396366b416f20262799380 (diff) | |
rustc: Change "Collect" to "collect"
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/typeck.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index 7f69b96f263..8116057c09c 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -404,7 +404,7 @@ fn write_nil_type(ty::ctxt tcx, &node_type_table ntt, uint node_id) { // We then annotate the AST with the resulting types and return the annotated // AST, along with a table mapping item IDs to their types. -mod Collect { +mod collect { type ctxt = rec(session::session sess, @ty_item_table id_to_ty_item, ty::type_cache type_cache, @@ -3300,7 +3300,7 @@ type typecheck_result = tup(node_type_table, ty::type_cache, @ast::crate); fn check_crate(&ty::ctxt tcx, &@ast::crate crate) -> typecheck_result { auto sess = tcx.sess; - auto result = Collect::collect_item_types(sess, tcx, crate); + auto result = collect::collect_item_types(sess, tcx, crate); let vec[ast::obj_field] fields = vec(); @@ -3308,8 +3308,7 @@ fn check_crate(&ty::ctxt tcx, &@ast::crate crate) -> typecheck_result { auto eqer = eq_unify_cache_entry; auto unify_cache = map::mk_hashmap[unify_cache_entry,ty::Unify::result](hasher, eqer); - auto fpt = - mk_fn_purity_table(crate); // use a variation on Collect + auto fpt = mk_fn_purity_table(crate); // use a variation on collect let node_type_table node_types = result._3; auto ccx = @rec(sess=sess, |
