@@ -53,7 +53,7 @@ pub struct EncodeContext<'a, 'tcx: 'a> {
5353 opaque : opaque:: Encoder < ' a > ,
5454 pub tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
5555 link_meta : & ' a LinkMeta ,
56- exported_symbols : & ' a NodeSet ,
56+ reachable_non_generics : & ' a NodeSet ,
5757
5858 lazy_state : LazyState ,
5959 type_shorthands : FxHashMap < Ty < ' tcx > , usize > ,
@@ -395,10 +395,10 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
395395
396396 // Encode exported symbols info.
397397 i = self . position ( ) ;
398- let exported_symbols = self . tracked (
399- IsolatedEncoder :: encode_exported_symbols ,
400- self . exported_symbols ) ;
401- let exported_symbols_bytes = self . position ( ) - i;
398+ let reachable_non_generics = self . tracked (
399+ IsolatedEncoder :: encode_reachable_non_generics ,
400+ self . reachable_non_generics ) ;
401+ let reachable_non_generics_bytes = self . position ( ) - i;
402402
403403 // Encode and index the items.
404404 i = self . position ( ) ;
@@ -442,7 +442,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
442442 codemap,
443443 def_path_table,
444444 impls,
445- exported_symbols ,
445+ reachable_non_generics ,
446446 index,
447447 } ) ;
448448
@@ -462,7 +462,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
462462 println ! ( " native bytes: {}" , native_lib_bytes) ;
463463 println ! ( " codemap bytes: {}" , codemap_bytes) ;
464464 println ! ( " impl bytes: {}" , impl_bytes) ;
465- println ! ( " exp. symbols bytes: {}" , exported_symbols_bytes ) ;
465+ println ! ( " exp. symbols bytes: {}" , reachable_non_generics_bytes ) ;
466466 println ! ( " def-path table bytes: {}" , def_path_table_bytes) ;
467467 println ! ( " item bytes: {}" , item_bytes) ;
468468 println ! ( " index bytes: {}" , index_bytes) ;
@@ -1388,9 +1388,12 @@ impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx> {
13881388 // middle::reachable module but filters out items that either don't have a
13891389 // symbol associated with them (they weren't translated) or if they're an FFI
13901390 // definition (as that's not defined in this crate).
1391- fn encode_exported_symbols ( & mut self , exported_symbols : & NodeSet ) -> LazySeq < DefIndex > {
1391+ fn encode_reachable_non_generics ( & mut self ,
1392+ reachable_non_generics : & NodeSet )
1393+ -> LazySeq < DefIndex > {
13921394 let tcx = self . tcx ;
1393- self . lazy_seq ( exported_symbols. iter ( ) . map ( |& id| tcx. hir . local_def_id ( id) . index ) )
1395+ self . lazy_seq ( reachable_non_generics. iter ( )
1396+ . map ( |& id| tcx. hir . local_def_id ( id) . index ) )
13941397 }
13951398
13961399 fn encode_dylib_dependency_formats ( & mut self , _: ( ) ) -> LazySeq < Option < LinkagePreference > > {
@@ -1664,7 +1667,7 @@ impl<'a, 'tcx, 'v> ItemLikeVisitor<'v> for ImplVisitor<'a, 'tcx> {
16641667
16651668pub fn encode_metadata < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
16661669 link_meta : & LinkMeta ,
1667- exported_symbols : & NodeSet )
1670+ reachable_non_generics : & NodeSet )
16681671 -> EncodedMetadata
16691672{
16701673 let mut cursor = Cursor :: new ( vec ! [ ] ) ;
@@ -1678,7 +1681,7 @@ pub fn encode_metadata<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
16781681 opaque : opaque:: Encoder :: new ( & mut cursor) ,
16791682 tcx,
16801683 link_meta,
1681- exported_symbols ,
1684+ reachable_non_generics ,
16821685 lazy_state : LazyState :: NoNode ,
16831686 type_shorthands : Default :: default ( ) ,
16841687 predicate_shorthands : Default :: default ( ) ,
0 commit comments