File tree 1 file changed +3
-4
lines changed
compiler/rustc_interface/src
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,8 @@ pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce(CurrentGcx) -> R + Send,
205
205
} ) ;
206
206
}
207
207
208
- let current_gcx = CurrentGcx :: new ( ) ;
209
- let current_gcx_ = FromDyn :: from ( current_gcx. clone ( ) ) ;
210
- let current_gcx = FromDyn :: from ( current_gcx) ;
208
+ let current_gcx = FromDyn :: from ( CurrentGcx :: new ( ) ) ;
209
+ let current_gcx2 = current_gcx. clone ( ) ;
211
210
212
211
let mut builder = rayon:: ThreadPoolBuilder :: new ( )
213
212
. thread_name ( |_| "rustc" . to_string ( ) )
@@ -220,7 +219,7 @@ pub(crate) fn run_in_thread_pool_with_globals<F: FnOnce(CurrentGcx) -> R + Send,
220
219
221
220
// Get a `GlobalCtxt` reference from `CurrentGcx` as we cannot rely on having a
222
221
// `TyCtxt` TLS reference here.
223
- let query_map = current_gcx_ . access ( |gcx| {
222
+ let query_map = current_gcx2 . access ( |gcx| {
224
223
tls:: enter_context ( & tls:: ImplicitCtxt :: new ( gcx) , || {
225
224
tls:: with ( |tcx| {
226
225
QueryCtxt :: new ( tcx)
You can’t perform that action at this time.
0 commit comments