Skip to content

Commit d747cd7

Browse files
committed
Rename convert_class_item to convert_field.
1 parent 91bd291 commit d747cd7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rustc/middle/typeck/collect.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ fn check_methods_against_trait(ccx: @crate_ctxt,
278278
} // |if_m|
279279
} // fn
280280

281-
fn convert_class_item(ccx: @crate_ctxt,
282-
rp: bool,
283-
bounds: @~[ty::param_bounds],
284-
v: ast_util::ivar) {
281+
fn convert_field(ccx: @crate_ctxt,
282+
rp: bool,
283+
bounds: @~[ty::param_bounds],
284+
v: ast_util::ivar) {
285285
let tt = ccx.to_ty(type_rscope(rp), v.ty);
286286
write_ty_to_tcx(ccx.tcx, v.id, tt);
287287
/* add the field to the tcache */
@@ -391,7 +391,7 @@ fn convert(ccx: @crate_ctxt, it: @ast::item) {
391391
// Write the type of each of the members
392392
let (fields, methods) = split_class_items(members);
393393
for fields.each |f| {
394-
convert_class_item(ccx, rp, tpt.bounds, f);
394+
convert_field(ccx, rp, tpt.bounds, f);
395395
}
396396
let {bounds, substs} = mk_substs(ccx, tps, rp);
397397
let selfty = ty::mk_class(tcx, local_def(it.id), substs);

0 commit comments

Comments
 (0)