Feed the output filenames into the TyCtxt
Since the introduction of the crate attribute pre-expansion pass we don't need access to the TyCtxt to compute it.
This commit is contained in:
parent
98a6eaa7f8
commit
4acaa0284e
4 changed files with 16 additions and 11 deletions
|
@ -401,9 +401,9 @@ fn run_compiler(
|
|||
Ok(())
|
||||
})?;
|
||||
|
||||
// Make sure the `output_filenames` query is run for its side
|
||||
// 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.output_filenames(()));
|
||||
queries.global_ctxt()?.enter(|tcx| tcx.write_dep_info(()));
|
||||
} else {
|
||||
let krate = queries.parse()?;
|
||||
pretty::print(
|
||||
|
@ -431,9 +431,9 @@ fn run_compiler(
|
|||
return early_exit();
|
||||
}
|
||||
|
||||
// Make sure the `output_filenames` query is run for its side
|
||||
// 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.output_filenames(()));
|
||||
queries.global_ctxt()?.enter(|tcx| tcx.write_dep_info(()));
|
||||
|
||||
if sess.opts.output_types.contains_key(&OutputType::DepInfo)
|
||||
&& sess.opts.output_types.len() == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue