Rename convert_class_item to convert_field.

This commit is contained in:
Lindsey Kuper
2012-07-31 18:13:50 -07:00
parent 91bd291009
commit d747cd724e

View File

@@ -278,7 +278,7 @@ fn check_methods_against_trait(ccx: @crate_ctxt,
} // |if_m| } // |if_m|
} // fn } // fn
fn convert_class_item(ccx: @crate_ctxt, fn convert_field(ccx: @crate_ctxt,
rp: bool, rp: bool,
bounds: @~[ty::param_bounds], bounds: @~[ty::param_bounds],
v: ast_util::ivar) { v: ast_util::ivar) {
@@ -391,7 +391,7 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
// Write the type of each of the members // Write the type of each of the members
let (fields, methods) = split_class_items(members); let (fields, methods) = split_class_items(members);
for fields.each |f| { 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 {bounds, substs} = mk_substs(ccx, tps, rp);
let selfty = ty::mk_class(tcx, local_def(it.id), substs); let selfty = ty::mk_class(tcx, local_def(it.id), substs);