@@ -147,7 +147,7 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>(
147
147
crate :: callbacks:: setup_callbacks ( ) ;
148
148
149
149
scoped_thread ( cfg, || {
150
- syntax:: attr :: with_globals ( edition, || {
150
+ syntax:: with_globals ( edition, || {
151
151
ty:: tls:: GCX_PTR . set ( & Lock :: new ( 0 ) , || {
152
152
if let Some ( stderr) = stderr {
153
153
io:: set_panic ( Some ( box Sink ( stderr. clone ( ) ) ) ) ;
@@ -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:: attr :: with_globals ( edition, || {
187
- syntax:: attr :: GLOBALS . with ( |syntax_globals| {
186
+ syntax:: with_globals ( edition, || {
187
+ syntax:: 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:: attr :: GLOBALS . set ( syntax_globals, || {
194
+ syntax:: 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 ( ) ) ) ) ;
0 commit comments