Skip to content

Commit 7ae4fd7

Browse files
committed
Rename encode_struct_field_names to encode_struct_fields to reflect what it actually does
1 parent 8c5402f commit 7ae4fd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/metadata/encoder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn encode_parent_item(ebml_w: &mut writer::Encoder, id: DefId) {
307307
ebml_w.end_tag();
308308
}
309309

310-
fn encode_struct_field_names(ecx: &EncodeContext,
310+
fn encode_struct_fields(ecx: &EncodeContext,
311311
ebml_w: &mut writer::Encoder,
312312
def: @struct_def) {
313313
for f in def.fields.iter() {
@@ -364,7 +364,7 @@ fn encode_enum_variant_info(ecx: &EncodeContext,
364364
ast::struct_variant_kind(def) => {
365365
let idx = encode_info_for_struct(ecx, ebml_w, path,
366366
def.fields, index);
367-
encode_struct_field_names(ecx, ebml_w, def);
367+
encode_struct_fields(ecx, ebml_w, def);
368368
let bkts = create_index(idx);
369369
encode_index(ebml_w, bkts, write_i64);
370370
}
@@ -1017,7 +1017,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
10171017
/* Encode def_ids for each field and method
10181018
for methods, write all the stuff get_trait_method
10191019
needs to know*/
1020-
encode_struct_field_names(ecx, ebml_w, struct_def);
1020+
encode_struct_fields(ecx, ebml_w, struct_def);
10211021

10221022
// Encode inherent implementations for this structure.
10231023
encode_inherent_implementations(ecx, ebml_w, def_id);

0 commit comments

Comments
 (0)