File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -435,11 +435,11 @@ pub unsafe fn handle_deadlock() {
435
435
let rustc_span_globals =
436
436
rustc_span:: GLOBALS . with ( |rustc_span_globals| rustc_span_globals as * const _ ) ;
437
437
let rustc_span_globals = & * rustc_span_globals;
438
- let syntax_globals = syntax:: GLOBALS . with ( |syntax_globals| syntax_globals as * const _ ) ;
438
+ let syntax_globals = syntax:: attr :: GLOBALS . with ( |syntax_globals| syntax_globals as * const _ ) ;
439
439
let syntax_globals = & * syntax_globals;
440
440
thread:: spawn ( move || {
441
441
tls:: GCX_PTR . set ( gcx_ptr, || {
442
- syntax:: GLOBALS . set ( syntax_globals, || {
442
+ syntax:: attr :: GLOBALS . set ( syntax_globals, || {
443
443
rustc_span:: GLOBALS
444
444
. set ( rustc_span_globals, || tls:: with_global ( |tcx| deadlock ( tcx, & registry) ) )
445
445
} ) ;
Original file line number Diff line number Diff line change @@ -183,15 +183,15 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>(
183
183
184
184
let with_pool = move |pool : & ThreadPool | pool. install ( move || f ( ) ) ;
185
185
186
- syntax:: with_globals ( edition, || {
187
- syntax:: GLOBALS . with ( |syntax_globals| {
186
+ syntax:: attr :: with_globals ( edition, || {
187
+ syntax:: attr :: GLOBALS . with ( |syntax_globals| {
188
188
rustc_span:: GLOBALS . with ( |rustc_span_globals| {
189
189
// The main handler runs for each Rayon worker thread and sets up
190
190
// the thread local rustc uses. syntax_globals and rustc_span_globals are
191
191
// captured and set on the new threads. ty::tls::with_thread_locals sets up
192
192
// thread local callbacks from libsyntax
193
193
let main_handler = move |thread : ThreadBuilder | {
194
- syntax:: GLOBALS . set ( syntax_globals, || {
194
+ syntax:: attr :: GLOBALS . set ( syntax_globals, || {
195
195
rustc_span:: GLOBALS . set ( rustc_span_globals, || {
196
196
if let Some ( stderr) = stderr {
197
197
io:: set_panic ( Some ( box Sink ( stderr. clone ( ) ) ) ) ;
You can’t perform that action at this time.
0 commit comments