Fix skipped setting of syntax::GLOBALS
This commit is contained in:
parent
b98633b94c
commit
4dcc6270e8
1 changed files with 4 additions and 2 deletions
|
|
@ -435,12 +435,14 @@ pub unsafe fn handle_deadlock() {
|
|||
let syntax_pos_globals =
|
||||
syntax_pos::GLOBALS.with(|syntax_pos_globals| syntax_pos_globals as *const _);
|
||||
let syntax_pos_globals = &*syntax_pos_globals;
|
||||
let syntax_globals = syntax::GLOBALS.with(|syntax_globals| syntax_globals as *const _);
|
||||
let syntax_globals = &*syntax_globals;
|
||||
thread::spawn(move || {
|
||||
tls::GCX_PTR.set(gcx_ptr, || {
|
||||
syntax_pos::GLOBALS.set(syntax_pos_globals, || {
|
||||
syntax::GLOBALS.set(syntax_globals, || {
|
||||
syntax_pos::GLOBALS
|
||||
.set(syntax_pos_globals, || tls::with_global(|tcx| deadlock(tcx, ®istry)))
|
||||
})
|
||||
});
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue