@@ -120,30 +120,8 @@ pub fn compile_input(sess: &Session,
120
120
phase_2_configure_and_expand ( sess, & cstore, krate, & id, addl_plugins, make_glob_map) ?
121
121
} ;
122
122
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
-
134
123
write_out_deps ( sess, & outputs, & id) ;
135
124
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
-
147
125
let arenas = ty:: CtxtArenas :: new ( ) ;
148
126
149
127
// Construct the HIR map
@@ -284,8 +262,6 @@ pub fn source_name(input: &Input) -> String {
284
262
/// Expect more entry points to be added in the future.
285
263
pub struct CompileController < ' a > {
286
264
pub after_parse : PhaseController < ' a > ,
287
- pub after_expand : PhaseController < ' a > ,
288
- pub after_write_deps : PhaseController < ' a > ,
289
265
pub after_hir_lowering : PhaseController < ' a > ,
290
266
pub after_analysis : PhaseController < ' a > ,
291
267
pub after_llvm : PhaseController < ' a > ,
@@ -297,8 +273,6 @@ impl<'a> CompileController<'a> {
297
273
pub fn basic ( ) -> CompileController < ' a > {
298
274
CompileController {
299
275
after_parse : PhaseController :: basic ( ) ,
300
- after_expand : PhaseController :: basic ( ) ,
301
- after_write_deps : PhaseController :: basic ( ) ,
302
276
after_hir_lowering : PhaseController :: basic ( ) ,
303
277
after_analysis : PhaseController :: basic ( ) ,
304
278
after_llvm : PhaseController :: basic ( ) ,
@@ -389,40 +363,6 @@ impl<'a, 'b, 'ast, 'tcx> CompileState<'a, 'b, 'ast, 'tcx> {
389
363
}
390
364
}
391
365
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
-
426
366
fn state_after_hir_lowering ( input : & ' a Input ,
427
367
session : & ' ast Session ,
428
368
out_dir : & ' a Option < PathBuf > ,
0 commit comments