@@ -120,30 +120,8 @@ pub fn compile_input(sess: &Session,
120120 phase_2_configure_and_expand ( sess, & cstore, krate, & id, addl_plugins, make_glob_map) ?
121121 } ;
122122
123- controller_entry_point ! ( after_expand,
124- sess,
125- CompileState :: state_after_expand( input,
126- sess,
127- outdir,
128- output,
129- & cstore,
130- & expanded_crate,
131- & id) ,
132- Ok ( ( ) ) ) ;
133-
134123 write_out_deps ( sess, & outputs, & id) ;
135124
136- controller_entry_point ! ( after_write_deps,
137- sess,
138- CompileState :: state_after_write_deps( input,
139- sess,
140- outdir,
141- output,
142- & cstore,
143- & expanded_crate,
144- & id) ,
145- Ok ( ( ) ) ) ;
146-
147125 let arenas = ty:: CtxtArenas :: new ( ) ;
148126
149127 // Construct the HIR map
@@ -284,8 +262,6 @@ pub fn source_name(input: &Input) -> String {
284262/// Expect more entry points to be added in the future.
285263pub struct CompileController < ' a > {
286264 pub after_parse : PhaseController < ' a > ,
287- pub after_expand : PhaseController < ' a > ,
288- pub after_write_deps : PhaseController < ' a > ,
289265 pub after_hir_lowering : PhaseController < ' a > ,
290266 pub after_analysis : PhaseController < ' a > ,
291267 pub after_llvm : PhaseController < ' a > ,
@@ -297,8 +273,6 @@ impl<'a> CompileController<'a> {
297273 pub fn basic ( ) -> CompileController < ' a > {
298274 CompileController {
299275 after_parse : PhaseController :: basic ( ) ,
300- after_expand : PhaseController :: basic ( ) ,
301- after_write_deps : PhaseController :: basic ( ) ,
302276 after_hir_lowering : PhaseController :: basic ( ) ,
303277 after_analysis : PhaseController :: basic ( ) ,
304278 after_llvm : PhaseController :: basic ( ) ,
@@ -389,40 +363,6 @@ impl<'a, 'b, 'ast, 'tcx> CompileState<'a, 'b, 'ast, 'tcx> {
389363 }
390364 }
391365
392- fn state_after_expand ( input : & ' a Input ,
393- session : & ' ast Session ,
394- out_dir : & ' a Option < PathBuf > ,
395- out_file : & ' a Option < PathBuf > ,
396- cstore : & ' a CStore ,
397- expanded_crate : & ' a ast:: Crate ,
398- crate_name : & ' a str )
399- -> CompileState < ' a , ' b , ' ast , ' tcx > {
400- CompileState {
401- crate_name : Some ( crate_name) ,
402- cstore : Some ( cstore) ,
403- expanded_crate : Some ( expanded_crate) ,
404- out_file : out_file. as_ref ( ) . map ( |s| & * * s) ,
405- ..CompileState :: empty ( input, session, out_dir)
406- }
407- }
408-
409- fn state_after_write_deps ( input : & ' a Input ,
410- session : & ' ast Session ,
411- out_dir : & ' a Option < PathBuf > ,
412- out_file : & ' a Option < PathBuf > ,
413- cstore : & ' a CStore ,
414- krate : & ' a ast:: Crate ,
415- crate_name : & ' a str )
416- -> CompileState < ' a , ' b , ' ast , ' tcx > {
417- CompileState {
418- crate_name : Some ( crate_name) ,
419- cstore : Some ( cstore) ,
420- expanded_crate : Some ( krate) ,
421- out_file : out_file. as_ref ( ) . map ( |s| & * * s) ,
422- ..CompileState :: empty ( input, session, out_dir)
423- }
424- }
425-
426366 fn state_after_hir_lowering ( input : & ' a Input ,
427367 session : & ' ast Session ,
428368 out_dir : & ' a Option < PathBuf > ,
0 commit comments