about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2012-07-31 18:13:50 -0700
committerLindsey Kuper <lindsey@rockstargirl.org>2012-08-01 11:08:47 -0700
commitd747cd724ed3cf19d3daf8a46f7726db888da844 (patch)
tree3fef4e5565b5e4f94bf1b2d9db5cde91c92f737c
parent91bd2910090aa5f80fd3ff401e891aa19286a474 (diff)
downloadrust-d747cd724ed3cf19d3daf8a46f7726db888da844.tar.gz
rust-d747cd724ed3cf19d3daf8a46f7726db888da844.zip
Rename `convert_class_item` to `convert_field`.
-rw-r--r--src/rustc/middle/typeck/collect.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rustc/middle/typeck/collect.rs b/src/rustc/middle/typeck/collect.rs
index 0c16fc16933..3cbd82cc683 100644
--- a/src/rustc/middle/typeck/collect.rs
+++ b/src/rustc/middle/typeck/collect.rs
@@ -278,10 +278,10 @@ fn check_methods_against_trait(ccx: @crate_ctxt,
     } // |if_m|
 } // fn
 
-fn convert_class_item(ccx: @crate_ctxt,
-                      rp: bool,
-                      bounds: @~[ty::param_bounds],
-                      v: ast_util::ivar) {
+fn convert_field(ccx: @crate_ctxt,
+                 rp: bool,
+                 bounds: @~[ty::param_bounds],
+                 v: ast_util::ivar) {
     let tt = ccx.to_ty(type_rscope(rp), v.ty);
     write_ty_to_tcx(ccx.tcx, v.id, tt);
     /* add the field to the tcache */
@@ -391,7 +391,7 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
         // Write the type of each of the members
         let (fields, methods) = split_class_items(members);
         for fields.each |f| {
-           convert_class_item(ccx, rp, tpt.bounds, f);
+           convert_field(ccx, rp, tpt.bounds, f);
         }
         let {bounds, substs} = mk_substs(ccx, tps, rp);
         let selfty = ty::mk_class(tcx, local_def(it.id), substs);