File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/librustc_metadata/rmeta Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -467,12 +467,6 @@ impl<'tcx> EncodeContext<'tcx> {
467
467
let impls = self . encode_impls ( ) ;
468
468
let impl_bytes = self . position ( ) - i;
469
469
470
- // Encode exported symbols info.
471
- i = self . position ( ) ;
472
- let exported_symbols = self . tcx . exported_symbols ( LOCAL_CRATE ) ;
473
- let exported_symbols = self . encode_exported_symbols ( & exported_symbols) ;
474
- let exported_symbols_bytes = self . position ( ) - i;
475
-
476
470
let tcx = self . tcx ;
477
471
478
472
// Encode the items.
@@ -513,6 +507,12 @@ impl<'tcx> EncodeContext<'tcx> {
513
507
let proc_macro_data = self . encode_proc_macros ( ) ;
514
508
let proc_macro_data_bytes = self . position ( ) - i;
515
509
510
+ // Encode exported symbols info.
511
+ i = self . position ( ) ;
512
+ let exported_symbols = self . tcx . exported_symbols ( LOCAL_CRATE ) ;
513
+ let exported_symbols = self . encode_exported_symbols ( & exported_symbols) ;
514
+ let exported_symbols_bytes = self . position ( ) - i;
515
+
516
516
let attrs = tcx. hir ( ) . krate_attrs ( ) ;
517
517
let has_default_lib_allocator = attr:: contains_name ( & attrs, sym:: default_lib_allocator) ;
518
518
Original file line number Diff line number Diff line change @@ -196,14 +196,15 @@ crate struct CrateRoot<'tcx> {
196
196
source_map : Lazy < [ rustc_span:: SourceFile ] > ,
197
197
def_path_table : Lazy < map:: definitions:: DefPathTable > ,
198
198
impls : Lazy < [ TraitImpls ] > ,
199
- exported_symbols : Lazy ! ( [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] ) ,
200
199
interpret_alloc_index : Lazy < [ u32 ] > ,
201
200
202
201
per_def : LazyPerDefTables < ' tcx > ,
203
202
204
203
/// The DefIndex's of any proc macros declared by this crate.
205
204
proc_macro_data : Option < Lazy < [ DefIndex ] > > ,
206
205
206
+ exported_symbols : Lazy ! ( [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] ) ,
207
+
207
208
compiler_builtins : bool ,
208
209
needs_allocator : bool ,
209
210
needs_panic_runtime : bool ,
You can’t perform that action at this time.
0 commit comments