@@ -22,7 +22,7 @@ use rustc::lint;
22
22
use rustc:: middle:: { self , stability, reachable, resolve_lifetime} ;
23
23
use rustc:: middle:: cstore:: CrateStore ;
24
24
use rustc:: middle:: privacy:: AccessLevels ;
25
- use rustc:: ty:: { self , TyCtxt , Resolutions , GlobalArenas } ;
25
+ use rustc:: ty:: { self , TyCtxt , Resolutions , AllArenas } ;
26
26
use rustc:: traits;
27
27
use rustc:: util:: common:: { ErrorReported , time} ;
28
28
use rustc_allocator as allocator;
@@ -62,7 +62,6 @@ use syntax::util::node_count::NodeCounter;
62
62
use syntax_pos:: FileName ;
63
63
use syntax;
64
64
use syntax_ext;
65
- use arena:: DroplessArena ;
66
65
67
66
use derive_registrar;
68
67
use pretty:: ReplaceBodyWithLoop ;
@@ -184,8 +183,7 @@ pub fn compile_input(sess: &Session,
184
183
return Ok ( ( ) )
185
184
}
186
185
187
- let arena = DroplessArena :: new ( ) ;
188
- let arenas = GlobalArenas :: new ( ) ;
186
+ let arenas = AllArenas :: new ( ) ;
189
187
190
188
// Construct the HIR map
191
189
let hir_map = time ( sess. time_passes ( ) ,
@@ -200,7 +198,6 @@ pub fn compile_input(sess: &Session,
200
198
sess,
201
199
outdir,
202
200
output,
203
- & arena,
204
201
& arenas,
205
202
& cstore,
206
203
& hir_map,
@@ -230,7 +227,6 @@ pub fn compile_input(sess: &Session,
230
227
hir_map,
231
228
analysis,
232
229
resolutions,
233
- & arena,
234
230
& arenas,
235
231
& crate_name,
236
232
& outputs,
@@ -416,8 +412,7 @@ pub struct CompileState<'a, 'tcx: 'a> {
416
412
pub output_filenames : Option < & ' a OutputFilenames > ,
417
413
pub out_dir : Option < & ' a Path > ,
418
414
pub out_file : Option < & ' a Path > ,
419
- pub arena : Option < & ' tcx DroplessArena > ,
420
- pub arenas : Option < & ' tcx GlobalArenas < ' tcx > > ,
415
+ pub arenas : Option < & ' tcx AllArenas < ' tcx > > ,
421
416
pub expanded_crate : Option < & ' a ast:: Crate > ,
422
417
pub hir_crate : Option < & ' a hir:: Crate > ,
423
418
pub hir_map : Option < & ' a hir_map:: Map < ' tcx > > ,
@@ -437,7 +432,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
437
432
session,
438
433
out_dir : out_dir. as_ref ( ) . map ( |s| & * * s) ,
439
434
out_file : None ,
440
- arena : None ,
441
435
arenas : None ,
442
436
krate : None ,
443
437
registry : None ,
@@ -492,8 +486,7 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
492
486
session : & ' tcx Session ,
493
487
out_dir : & ' a Option < PathBuf > ,
494
488
out_file : & ' a Option < PathBuf > ,
495
- arena : & ' tcx DroplessArena ,
496
- arenas : & ' tcx GlobalArenas < ' tcx > ,
489
+ arenas : & ' tcx AllArenas < ' tcx > ,
497
490
cstore : & ' tcx CStore ,
498
491
hir_map : & ' a hir_map:: Map < ' tcx > ,
499
492
analysis : & ' a ty:: CrateAnalysis ,
@@ -505,7 +498,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
505
498
-> Self {
506
499
CompileState {
507
500
crate_name : Some ( crate_name) ,
508
- arena : Some ( arena) ,
509
501
arenas : Some ( arenas) ,
510
502
cstore : Some ( cstore) ,
511
503
hir_map : Some ( hir_map) ,
@@ -974,8 +966,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
974
966
hir_map : hir_map:: Map < ' tcx > ,
975
967
mut analysis : ty:: CrateAnalysis ,
976
968
resolutions : Resolutions ,
977
- arena : & ' tcx DroplessArena ,
978
- arenas : & ' tcx GlobalArenas < ' tcx > ,
969
+ arenas : & ' tcx AllArenas < ' tcx > ,
979
970
name : & str ,
980
971
output_filenames : & OutputFilenames ,
981
972
f : F )
@@ -1035,7 +1026,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
1035
1026
local_providers,
1036
1027
extern_providers,
1037
1028
arenas,
1038
- arena,
1039
1029
resolutions,
1040
1030
hir_map,
1041
1031
query_result_on_disk_cache,
0 commit comments