1
Fork 0

Remove the parse query

This commit is contained in:
bjorn3 2024-10-31 15:46:11 +00:00
parent 6ece803632
commit 87802536f4
6 changed files with 99 additions and 196 deletions

View file

@ -709,10 +709,10 @@ pub static DEFAULT_QUERY_PROVIDERS: LazyLock<Providers> = LazyLock::new(|| {
*providers
});
pub fn create_and_enter_global_ctxt<'tcx, T>(
compiler: &'tcx Compiler,
pub fn create_and_enter_global_ctxt<T>(
compiler: &Compiler,
krate: rustc_ast::Crate,
f: impl for<'a> FnOnce(TyCtxt<'a>) -> T,
f: impl for<'tcx> FnOnce(TyCtxt<'tcx>) -> T,
) -> T {
let gcx_cell = OnceLock::new();
let arena = WorkerLocal::new(|_| Arena::default());