Use ensure_with_value in a few more places.
This commit is contained in:
parent
382cc909d5
commit
e955ec0908
3 changed files with 7 additions and 6 deletions
|
@ -435,8 +435,9 @@ fn compute_hir_hash(
|
|||
|
||||
pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
|
||||
let sess = tcx.sess;
|
||||
tcx.ensure().output_filenames(());
|
||||
let _ = tcx.early_lint_checks(()); // Borrows `resolver_for_lowering`.
|
||||
// Queries that borrow `resolver_for_lowering`.
|
||||
tcx.ensure_with_value().output_filenames(());
|
||||
tcx.ensure_with_value().early_lint_checks(());
|
||||
let (mut resolver, krate) = tcx.resolver_for_lowering(()).steal();
|
||||
|
||||
let ast_index = index_crate(&resolver.node_id_to_def_id, &krate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue