about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSiegeLord <slabode@aim.com>2013-09-09 18:33:35 -0400
committerSiegeLord <slabode@aim.com>2013-09-11 14:49:09 -0400
commit7ae4fd75c40b95626ff8ae9ee70da8d86791c949 (patch)
tree268a8f5373f8f5314c6c7af73f65c17fcb001b81 /src
parent8c5402fd36ae3ab0cca55e4c0f62f0f8264a7e3a (diff)
downloadrust-7ae4fd75c40b95626ff8ae9ee70da8d86791c949.tar.gz
rust-7ae4fd75c40b95626ff8ae9ee70da8d86791c949.zip
Rename encode_struct_field_names to encode_struct_fields to reflect what it actually does
Diffstat (limited to 'src')
-rw-r--r--src/librustc/metadata/encoder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/metadata/encoder.rs b/src/librustc/metadata/encoder.rs
index e04755e365c..98c7a7a126e 100644
--- a/src/librustc/metadata/encoder.rs
+++ b/src/librustc/metadata/encoder.rs
@@ -307,7 +307,7 @@ fn encode_parent_item(ebml_w: &mut writer::Encoder, id: DefId) {
     ebml_w.end_tag();
 }
 
-fn encode_struct_field_names(ecx: &EncodeContext,
+fn encode_struct_fields(ecx: &EncodeContext,
                              ebml_w: &mut writer::Encoder,
                              def: @struct_def) {
     for f in def.fields.iter() {
@@ -364,7 +364,7 @@ fn encode_enum_variant_info(ecx: &EncodeContext,
             ast::struct_variant_kind(def) => {
                 let idx = encode_info_for_struct(ecx, ebml_w, path,
                                          def.fields, index);
-                encode_struct_field_names(ecx, ebml_w, def);
+                encode_struct_fields(ecx, ebml_w, def);
                 let bkts = create_index(idx);
                 encode_index(ebml_w, bkts, write_i64);
             }
@@ -1017,7 +1017,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
         /* Encode def_ids for each field and method
          for methods, write all the stuff get_trait_method
         needs to know*/
-        encode_struct_field_names(ecx, ebml_w, struct_def);
+        encode_struct_fields(ecx, ebml_w, struct_def);
 
         // Encode inherent implementations for this structure.
         encode_inherent_implementations(ecx, ebml_w, def_id);