File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ pub trait Callbacks {
109
109
fn after_parsing ( & mut self , _compiler : & interface:: Compiler ) -> bool {
110
110
true
111
111
}
112
+ /// Called after expansion and returns true to continue execution
113
+ fn after_expansion ( & mut self , _compiler : & interface:: Compiler ) -> bool {
114
+ true
115
+ }
112
116
/// Called after analysis and returns true to continue execution
113
117
fn after_analysis ( & mut self , _compiler : & interface:: Compiler ) -> bool {
114
118
true
@@ -312,6 +316,11 @@ pub fn run_compiler(
312
316
return sess. compile_status ( ) ;
313
317
}
314
318
319
+ compiler. expansion ( ) ?;
320
+ if !callbacks. after_expansion ( compiler) {
321
+ return sess. compile_status ( ) ;
322
+ }
323
+
315
324
compiler. prepare_outputs ( ) ?;
316
325
317
326
if sess. opts . output_types . contains_key ( & OutputType :: DepInfo )
You can’t perform that action at this time.
0 commit comments