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:
@@ -135,6 +135,7 @@ impl<'tcx> Queries<'tcx> {
|
||||
sess.opts.cg.metadata.clone(),
|
||||
sess.cfg_version,
|
||||
);
|
||||
let outputs = util::build_output_filenames(sess, crate_name.to_string());
|
||||
let dep_graph = setup_dep_graph(sess, crate_name, stable_crate_id)?;
|
||||
|
||||
let cstore = FreezeLock::new(Box::new(CStore::new(
|
||||
@@ -169,6 +170,7 @@ impl<'tcx> Queries<'tcx> {
|
||||
crate_name,
|
||||
)));
|
||||
feed.crate_for_resolver(tcx.arena.alloc(Steal::new((krate, pre_configured_attrs))));
|
||||
feed.output_filenames(Arc::new(outputs));
|
||||
});
|
||||
Ok(qcx)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user