We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b98633b commit 4dcc627Copy full SHA for 4dcc627
src/librustc/ty/query/job.rs
@@ -435,12 +435,14 @@ pub unsafe fn handle_deadlock() {
435
let syntax_pos_globals =
436
syntax_pos::GLOBALS.with(|syntax_pos_globals| syntax_pos_globals as *const _);
437
let syntax_pos_globals = &*syntax_pos_globals;
438
+ let syntax_globals = syntax::GLOBALS.with(|syntax_globals| syntax_globals as *const _);
439
+ let syntax_globals = &*syntax_globals;
440
thread::spawn(move || {
441
tls::GCX_PTR.set(gcx_ptr, || {
- syntax_pos::GLOBALS.set(syntax_pos_globals, || {
442
+ syntax::GLOBALS.set(syntax_globals, || {
443
syntax_pos::GLOBALS
444
.set(syntax_pos_globals, || tls::with_global(|tcx| deadlock(tcx, ®istry)))
- })
445
+ });
446
})
447
});
448
}
0 commit comments