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 @@ -435,12 +435,6 @@ impl<'tcx> EncodeContext<'tcx> {
435
435
let impls = self . encode_impls ( ) ;
436
436
let impl_bytes = self . position ( ) - i;
437
437
438
- // Encode exported symbols info.
439
- i = self . position ( ) ;
440
- let exported_symbols = self . tcx . exported_symbols ( LOCAL_CRATE ) ;
441
- let exported_symbols = self . encode_exported_symbols ( & exported_symbols) ;
442
- let exported_symbols_bytes = self . position ( ) - i;
443
-
444
438
let tcx = self . tcx ;
445
439
446
440
// Encode the items.
@@ -481,6 +475,12 @@ impl<'tcx> EncodeContext<'tcx> {
481
475
let proc_macro_data = self . encode_proc_macros ( ) ;
482
476
let proc_macro_data_bytes = self . position ( ) - i;
483
477
478
+ // Encode exported symbols info.
479
+ i = self . position ( ) ;
480
+ let exported_symbols = self . tcx . exported_symbols ( LOCAL_CRATE ) ;
481
+ let exported_symbols = self . encode_exported_symbols ( & exported_symbols) ;
482
+ let exported_symbols_bytes = self . position ( ) - i;
483
+
484
484
let attrs = tcx. hir ( ) . krate_attrs ( ) ;
485
485
let has_default_lib_allocator = attr:: contains_name ( & attrs, sym:: default_lib_allocator) ;
486
486
Original file line number Diff line number Diff line change @@ -195,14 +195,15 @@ crate struct CrateRoot<'tcx> {
195
195
source_map : Lazy < [ rustc_span:: SourceFile ] > ,
196
196
def_path_table : Lazy < map:: definitions:: DefPathTable > ,
197
197
impls : Lazy < [ TraitImpls ] > ,
198
- exported_symbols : Lazy ! ( [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] ) ,
199
198
interpret_alloc_index : Lazy < [ u32 ] > ,
200
199
201
200
per_def : LazyPerDefTables < ' tcx > ,
202
201
203
202
/// The DefIndex's of any proc macros delcared by this crate.
204
203
proc_macro_data : Option < Lazy < [ DefIndex ] > > ,
205
204
205
+ exported_symbols : Lazy ! ( [ ( ExportedSymbol <' tcx>, SymbolExportLevel ) ] ) ,
206
+
206
207
compiler_builtins : bool ,
207
208
needs_allocator : bool ,
208
209
needs_panic_runtime : bool ,
You can’t perform that action at this time.
0 commit comments