@@ -22,7 +22,7 @@ use rustc::lint;
2222use rustc:: middle:: { self , stability, reachable, resolve_lifetime} ;
2323use rustc:: middle:: cstore:: CrateStore ;
2424use rustc:: middle:: privacy:: AccessLevels ;
25- use rustc:: ty:: { self , TyCtxt , Resolutions , GlobalArenas } ;
25+ use rustc:: ty:: { self , TyCtxt , Resolutions , AllArenas } ;
2626use rustc:: traits;
2727use rustc:: util:: common:: { ErrorReported , time} ;
2828use rustc_allocator as allocator;
@@ -62,7 +62,6 @@ use syntax::util::node_count::NodeCounter;
6262use syntax_pos:: FileName ;
6363use syntax;
6464use syntax_ext;
65- use arena:: DroplessArena ;
6665
6766use derive_registrar;
6867use pretty:: ReplaceBodyWithLoop ;
@@ -184,8 +183,7 @@ pub fn compile_input(sess: &Session,
184183 return Ok ( ( ) )
185184 }
186185
187- let arena = DroplessArena :: new ( ) ;
188- let arenas = GlobalArenas :: new ( ) ;
186+ let arenas = AllArenas :: new ( ) ;
189187
190188 // Construct the HIR map
191189 let hir_map = time ( sess. time_passes ( ) ,
@@ -200,7 +198,6 @@ pub fn compile_input(sess: &Session,
200198 sess,
201199 outdir,
202200 output,
203- & arena,
204201 & arenas,
205202 & cstore,
206203 & hir_map,
@@ -230,7 +227,6 @@ pub fn compile_input(sess: &Session,
230227 hir_map,
231228 analysis,
232229 resolutions,
233- & arena,
234230 & arenas,
235231 & crate_name,
236232 & outputs,
@@ -416,8 +412,7 @@ pub struct CompileState<'a, 'tcx: 'a> {
416412 pub output_filenames : Option < & ' a OutputFilenames > ,
417413 pub out_dir : Option < & ' a Path > ,
418414 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 > > ,
421416 pub expanded_crate : Option < & ' a ast:: Crate > ,
422417 pub hir_crate : Option < & ' a hir:: Crate > ,
423418 pub hir_map : Option < & ' a hir_map:: Map < ' tcx > > ,
@@ -437,7 +432,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
437432 session,
438433 out_dir : out_dir. as_ref ( ) . map ( |s| & * * s) ,
439434 out_file : None ,
440- arena : None ,
441435 arenas : None ,
442436 krate : None ,
443437 registry : None ,
@@ -492,8 +486,7 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
492486 session : & ' tcx Session ,
493487 out_dir : & ' a Option < PathBuf > ,
494488 out_file : & ' a Option < PathBuf > ,
495- arena : & ' tcx DroplessArena ,
496- arenas : & ' tcx GlobalArenas < ' tcx > ,
489+ arenas : & ' tcx AllArenas < ' tcx > ,
497490 cstore : & ' tcx CStore ,
498491 hir_map : & ' a hir_map:: Map < ' tcx > ,
499492 analysis : & ' a ty:: CrateAnalysis ,
@@ -505,7 +498,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
505498 -> Self {
506499 CompileState {
507500 crate_name : Some ( crate_name) ,
508- arena : Some ( arena) ,
509501 arenas : Some ( arenas) ,
510502 cstore : Some ( cstore) ,
511503 hir_map : Some ( hir_map) ,
@@ -974,8 +966,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
974966 hir_map : hir_map:: Map < ' tcx > ,
975967 mut analysis : ty:: CrateAnalysis ,
976968 resolutions : Resolutions ,
977- arena : & ' tcx DroplessArena ,
978- arenas : & ' tcx GlobalArenas < ' tcx > ,
969+ arenas : & ' tcx AllArenas < ' tcx > ,
979970 name : & str ,
980971 output_filenames : & OutputFilenames ,
981972 f : F )
@@ -1035,7 +1026,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
10351026 local_providers,
10361027 extern_providers,
10371028 arenas,
1038- arena,
10391029 resolutions,
10401030 hir_map,
10411031 query_result_on_disk_cache,
0 commit comments