@@ -414,6 +414,63 @@ impl<'a> CompileController<'a> {
414
414
}
415
415
}
416
416
417
+ impl < ' a > :: CompilerCalls < ' a > for CompileController < ' a > {
418
+ fn early_callback (
419
+ & mut self ,
420
+ matches : & :: getopts:: Matches ,
421
+ sopts : & config:: Options ,
422
+ cfg : & ast:: CrateConfig ,
423
+ descriptions : & :: errors:: registry:: Registry ,
424
+ output : :: ErrorOutputType ,
425
+ ) -> Compilation {
426
+ :: RustcDefaultCalls . early_callback (
427
+ matches,
428
+ sopts,
429
+ cfg,
430
+ descriptions,
431
+ output,
432
+ )
433
+ }
434
+ fn no_input (
435
+ & mut self ,
436
+ matches : & :: getopts:: Matches ,
437
+ sopts : & config:: Options ,
438
+ cfg : & ast:: CrateConfig ,
439
+ odir : & Option < PathBuf > ,
440
+ ofile : & Option < PathBuf > ,
441
+ descriptions : & :: errors:: registry:: Registry ,
442
+ ) -> Option < ( Input , Option < PathBuf > ) > {
443
+ :: RustcDefaultCalls . no_input (
444
+ matches,
445
+ sopts,
446
+ cfg,
447
+ odir,
448
+ ofile,
449
+ descriptions,
450
+ )
451
+ }
452
+ fn late_callback (
453
+ & mut self ,
454
+ codegen_backend : & :: CodegenBackend ,
455
+ matches : & :: getopts:: Matches ,
456
+ sess : & Session ,
457
+ cstore : & :: CrateStore ,
458
+ input : & Input ,
459
+ odir : & Option < PathBuf > ,
460
+ ofile : & Option < PathBuf > ,
461
+ ) -> Compilation {
462
+ :: RustcDefaultCalls
463
+ . late_callback ( codegen_backend, matches, sess, cstore, input, odir, ofile)
464
+ }
465
+ fn build_controller (
466
+ self : Box < Self > ,
467
+ _: & Session ,
468
+ _: & :: getopts:: Matches
469
+ ) -> CompileController < ' a > {
470
+ * self
471
+ }
472
+ }
473
+
417
474
pub struct PhaseController < ' a > {
418
475
pub stop : Compilation ,
419
476
// If true then the compiler will try to run the callback even if the phase
0 commit comments