@@ -1693,30 +1693,6 @@ fn encode_impls<'a>(ecx: &'a EncodeContext,
1693
1693
rbml_w. end_tag ( ) ;
1694
1694
}
1695
1695
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
-
1720
1696
// Encodes all reachable symbols in this crate into the metadata.
1721
1697
//
1722
1698
// This pass is seeded off the reachability list calculated in the
@@ -1861,7 +1837,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
1861
1837
codemap_bytes : u64 ,
1862
1838
macro_defs_bytes : u64 ,
1863
1839
impl_bytes : u64 ,
1864
- misc_bytes : u64 ,
1840
+ reachable_bytes : u64 ,
1865
1841
item_bytes : u64 ,
1866
1842
index_bytes : u64 ,
1867
1843
xref_bytes : u64 ,
@@ -1877,7 +1853,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
1877
1853
codemap_bytes : 0 ,
1878
1854
macro_defs_bytes : 0 ,
1879
1855
impl_bytes : 0 ,
1880
- misc_bytes : 0 ,
1856
+ reachable_bytes : 0 ,
1881
1857
item_bytes : 0 ,
1882
1858
index_bytes : 0 ,
1883
1859
xref_bytes : 0 ,
@@ -1931,11 +1907,10 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
1931
1907
encode_impls ( & ecx, krate, rbml_w) ;
1932
1908
stats. impl_bytes = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) - i;
1933
1909
1934
- // Encode miscellaneous info.
1910
+ // Encode reachability info.
1935
1911
i = rbml_w. writer . seek ( SeekFrom :: Current ( 0 ) ) . unwrap ( ) ;
1936
- encode_misc_info ( & ecx, krate, rbml_w) ;
1937
1912
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;
1939
1914
1940
1915
// Encode and index the items.
1941
1916
rbml_w. start_tag ( tag_items) ;
@@ -1972,7 +1947,7 @@ fn encode_metadata_inner(rbml_w: &mut Encoder,
1972
1947
println ! ( " codemap bytes: {}" , stats. codemap_bytes) ;
1973
1948
println ! ( " macro def bytes: {}" , stats. macro_defs_bytes) ;
1974
1949
println ! ( " impl bytes: {}" , stats. impl_bytes) ;
1975
- println ! ( " misc bytes: {}" , stats. misc_bytes ) ;
1950
+ println ! ( " reachable bytes: {}" , stats. reachable_bytes ) ;
1976
1951
println ! ( " item bytes: {}" , stats. item_bytes) ;
1977
1952
println ! ( " index bytes: {}" , stats. index_bytes) ;
1978
1953
println ! ( " xref bytes: {}" , stats. xref_bytes) ;
0 commit comments