@@ -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 ;
@@ -169,8 +168,7 @@ pub fn compile_input(sess: &Session,
169168 return Ok ( ( ) )
170169 }
171170
172- let arena = DroplessArena :: new ( ) ;
173- let arenas = GlobalArenas :: new ( ) ;
171+ let arenas = AllArenas :: new ( ) ;
174172
175173 // Construct the HIR map
176174 let hir_map = time ( sess. time_passes ( ) ,
@@ -185,7 +183,6 @@ pub fn compile_input(sess: &Session,
185183 sess,
186184 outdir,
187185 output,
188- & arena,
189186 & arenas,
190187 & cstore,
191188 & hir_map,
@@ -215,7 +212,6 @@ pub fn compile_input(sess: &Session,
215212 hir_map,
216213 analysis,
217214 resolutions,
218- & arena,
219215 & arenas,
220216 & crate_name,
221217 & outputs,
@@ -401,8 +397,7 @@ pub struct CompileState<'a, 'tcx: 'a> {
401397 pub output_filenames : Option < & ' a OutputFilenames > ,
402398 pub out_dir : Option < & ' a Path > ,
403399 pub out_file : Option < & ' a Path > ,
404- pub arena : Option < & ' tcx DroplessArena > ,
405- pub arenas : Option < & ' tcx GlobalArenas < ' tcx > > ,
400+ pub arenas : Option < & ' tcx AllArenas < ' tcx > > ,
406401 pub expanded_crate : Option < & ' a ast:: Crate > ,
407402 pub hir_crate : Option < & ' a hir:: Crate > ,
408403 pub hir_map : Option < & ' a hir_map:: Map < ' tcx > > ,
@@ -422,7 +417,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
422417 session,
423418 out_dir : out_dir. as_ref ( ) . map ( |s| & * * s) ,
424419 out_file : None ,
425- arena : None ,
426420 arenas : None ,
427421 krate : None ,
428422 registry : None ,
@@ -477,8 +471,7 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
477471 session : & ' tcx Session ,
478472 out_dir : & ' a Option < PathBuf > ,
479473 out_file : & ' a Option < PathBuf > ,
480- arena : & ' tcx DroplessArena ,
481- arenas : & ' tcx GlobalArenas < ' tcx > ,
474+ arenas : & ' tcx AllArenas < ' tcx > ,
482475 cstore : & ' tcx CStore ,
483476 hir_map : & ' a hir_map:: Map < ' tcx > ,
484477 analysis : & ' a ty:: CrateAnalysis ,
@@ -490,7 +483,6 @@ impl<'a, 'tcx> CompileState<'a, 'tcx> {
490483 -> Self {
491484 CompileState {
492485 crate_name : Some ( crate_name) ,
493- arena : Some ( arena) ,
494486 arenas : Some ( arenas) ,
495487 cstore : Some ( cstore) ,
496488 hir_map : Some ( hir_map) ,
@@ -959,8 +951,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
959951 hir_map : hir_map:: Map < ' tcx > ,
960952 mut analysis : ty:: CrateAnalysis ,
961953 resolutions : Resolutions ,
962- arena : & ' tcx DroplessArena ,
963- arenas : & ' tcx GlobalArenas < ' tcx > ,
954+ arenas : & ' tcx AllArenas < ' tcx > ,
964955 name : & str ,
965956 output_filenames : & OutputFilenames ,
966957 f : F )
@@ -1020,7 +1011,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(control: &CompileController,
10201011 local_providers,
10211012 extern_providers,
10221013 arenas,
1023- arena,
10241014 resolutions,
10251015 hir_map,
10261016 query_result_on_disk_cache,
0 commit comments