Turn write_dep_info into a regular function
It has side-effects and as such can't be cached.
This commit is contained in:
@@ -401,9 +401,7 @@ fn run_compiler(
|
||||
Ok(())
|
||||
})?;
|
||||
|
||||
// Make sure the `write_dep_info` query is run for its side
|
||||
// effects of writing the dep-info and reporting errors.
|
||||
queries.global_ctxt()?.enter(|tcx| tcx.write_dep_info(()));
|
||||
queries.write_dep_info()?;
|
||||
} else {
|
||||
let krate = queries.parse()?;
|
||||
pretty::print(
|
||||
@@ -431,9 +429,7 @@ fn run_compiler(
|
||||
return early_exit();
|
||||
}
|
||||
|
||||
// Make sure the `write_dep_info` query is run for its side
|
||||
// effects of writing the dep-info and reporting errors.
|
||||
queries.global_ctxt()?.enter(|tcx| tcx.write_dep_info(()));
|
||||
queries.write_dep_info()?;
|
||||
|
||||
if sess.opts.output_types.contains_key(&OutputType::DepInfo)
|
||||
&& sess.opts.output_types.len() == 1
|
||||
|
||||
Reference in New Issue
Block a user