@@ -7,7 +7,7 @@ use rustc_codegen_ssa::traits::CodegenBackend;
77use rustc_codegen_ssa:: CodegenResults ;
88use rustc_data_structures:: steal:: Steal ;
99use rustc_data_structures:: svh:: Svh ;
10- use rustc_data_structures:: sync:: { AppendOnlyIndexVec , Lrc , OnceCell , RwLock , WorkerLocal } ;
10+ use rustc_data_structures:: sync:: { AppendOnlyIndexVec , Lrc , OnceLock , RwLock , WorkerLocal } ;
1111use rustc_hir:: def_id:: { StableCrateId , CRATE_DEF_ID , LOCAL_CRATE } ;
1212use rustc_hir:: definitions:: Definitions ;
1313use rustc_incremental:: DepGraphFuture ;
@@ -78,7 +78,7 @@ impl<T> Default for Query<T> {
7878
7979pub struct Queries < ' tcx > {
8080 compiler : & ' tcx Compiler ,
81- gcx_cell : OnceCell < GlobalCtxt < ' tcx > > ,
81+ gcx_cell : OnceLock < GlobalCtxt < ' tcx > > ,
8282
8383 arena : WorkerLocal < Arena < ' tcx > > ,
8484 hir_arena : WorkerLocal < rustc_hir:: Arena < ' tcx > > ,
@@ -93,7 +93,7 @@ impl<'tcx> Queries<'tcx> {
9393 pub fn new ( compiler : & ' tcx Compiler ) -> Queries < ' tcx > {
9494 Queries {
9595 compiler,
96- gcx_cell : OnceCell :: new ( ) ,
96+ gcx_cell : OnceLock :: new ( ) ,
9797 arena : WorkerLocal :: new ( |_| Arena :: default ( ) ) ,
9898 hir_arena : WorkerLocal :: new ( |_| rustc_hir:: Arena :: default ( ) ) ,
9999 parse : Default :: default ( ) ,
0 commit comments