@@ -1693,30 +1693,6 @@ fn encode_impls<'a>(ecx: &'a EncodeContext,
16931693 rbml_w. end_tag ( ) ;
16941694}
16951695
1696- fn encode_misc_info ( ecx : & EncodeContext ,
1697- krate : & hir:: Crate ,
1698- rbml_w : & mut Encoder ) {
1699- rbml_w. start_tag ( tag_misc_info) ;
1700- rbml_w. start_tag ( tag_misc_info_crate_items) ;
1701- for item_id in & krate. module . item_ids {
1702- rbml_w. wr_tagged_u64 ( tag_mod_child,
1703- def_to_u64 ( ecx. tcx . map . local_def_id ( item_id. id ) ) ) ;
1704-
1705- let item = ecx. tcx . map . expect_item ( item_id. id ) ;
1706- each_auxiliary_node_id ( item, |auxiliary_node_id| {
1707- rbml_w. wr_tagged_u64 ( tag_mod_child,
1708- def_to_u64 ( ecx. tcx . map . local_def_id ( auxiliary_node_id) ) ) ;
1709- true
1710- } ) ;
1711- }
1712-
1713- // Encode reexports for the root module.
1714- encode_reexports ( ecx, rbml_w, 0 ) ;
1715-
1716- rbml_w. end_tag ( ) ;
1717- rbml_w. end_tag ( ) ;
1718- }
1719-
17201696// Encodes all reachable symbols in this crate into the metadata.
17211697//
17221698// This pass is seeded off the reachability list calculated in the
@@ -1861,7 +1837,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
18611837 codemap_bytes : u64 ,
18621838 macro_defs_bytes : u64 ,
18631839 impl_bytes : u64 ,
1864- misc_bytes : u64 ,
1840+ reachable_bytes : u64 ,
18651841 item_bytes : u64 ,
18661842 index_bytes : u64 ,
18671843 xref_bytes : u64 ,
@@ -1877,7 +1853,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
18771853 codemap_bytes : 0 ,
18781854 macro_defs_bytes : 0 ,
18791855 impl_bytes : 0 ,
1880- misc_bytes : 0 ,
1856+ reachable_bytes : 0 ,
18811857 item_bytes : 0 ,
18821858 index_bytes : 0 ,
18831859 xref_bytes : 0 ,
@@ -1931,11 +1907,10 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
19311907 encode_impls ( & ecx, krate, rbml_w) ;
19321908 stats. impl_bytes = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) - i;
19331909
1934- // Encode miscellaneous info.
1910+ // Encode reachability info.
19351911 i = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) ;
1936- encode_misc_info ( & ecx, krate, rbml_w) ;
19371912 encode_reachable ( & ecx, rbml_w) ;
1938- stats. misc_bytes = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) - i;
1913+ stats. reachable_bytes = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) - i;
19391914
19401915 // Encode and index the items.
19411916 rbml_w. start_tag ( tag_items) ;
@@ -1972,7 +1947,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
19721947 println ! ( " codemap bytes: {}" , stats. codemap_bytes) ;
19731948 println ! ( " macro def bytes: {}" , stats. macro_defs_bytes) ;
19741949 println ! ( " impl bytes: {}" , stats. impl_bytes) ;
1975- println ! ( " misc bytes: {}" , stats. misc_bytes ) ;
1950+ println ! ( " reachable bytes: {}" , stats. reachable_bytes ) ;
19761951 println ! ( " item bytes: {}" , stats. item_bytes) ;
19771952 println ! ( " index bytes: {}" , stats. index_bytes) ;
19781953 println ! ( " xref bytes: {}" , stats. xref_bytes) ;
0 commit comments