@@ -741,9 +741,9 @@ pub fn default_provide_extern(providers: &mut ty::query::Providers<'_>) {
741
741
rustc_codegen_ssa:: provide_extern ( providers) ;
742
742
}
743
743
744
- pub struct BoxedGlobalCtxt < ' tcx > ( & ' tcx GlobalCtxt < ' tcx > ) ;
744
+ pub struct QueryContext < ' tcx > ( & ' tcx GlobalCtxt < ' tcx > ) ;
745
745
746
- impl < ' tcx > BoxedGlobalCtxt < ' tcx > {
746
+ impl < ' tcx > QueryContext < ' tcx > {
747
747
pub fn enter < F , R > ( & mut self , f : F ) -> R
748
748
where
749
749
F : FnOnce ( TyCtxt < ' tcx > ) -> R ,
@@ -766,7 +766,7 @@ pub fn create_global_ctxt<'tcx>(
766
766
global_ctxt : & ' tcx Once < GlobalCtxt < ' tcx > > ,
767
767
arenas : & ' tcx Once < AllArenas > ,
768
768
local_arena : & ' tcx WorkerLocal < Arena < ' tcx > > ,
769
- ) -> BoxedGlobalCtxt < ' tcx > {
769
+ ) -> QueryContext < ' tcx > {
770
770
let sess = & compiler. session ( ) ;
771
771
let defs = mem:: take ( & mut resolver_outputs. definitions ) ;
772
772
@@ -813,7 +813,7 @@ pub fn create_global_ctxt<'tcx>(
813
813
time ( tcx. sess , "dep graph tcx init" , || rustc_incremental:: dep_graph_tcx_init ( tcx) ) ;
814
814
} ) ;
815
815
816
- BoxedGlobalCtxt ( gcx)
816
+ QueryContext ( gcx)
817
817
}
818
818
819
819
/// Runs the resolution, type-checking, region checking and other
0 commit comments