We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a360e commit ae75311Copy full SHA for ae75311
src/librustc_driver/lib.rs
@@ -109,6 +109,10 @@ pub trait Callbacks {
109
fn after_parsing(&mut self, _compiler: &interface::Compiler) -> bool {
110
true
111
}
112
+ /// Called after expansion and returns true to continue execution
113
+ fn after_expansion(&mut self, _compiler: &interface::Compiler) -> bool {
114
+ true
115
+ }
116
/// Called after analysis and returns true to continue execution
117
fn after_analysis(&mut self, _compiler: &interface::Compiler) -> bool {
118
@@ -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()?;
325
326
if sess.opts.output_types.contains_key(&OutputType::DepInfo)
0 commit comments