@@ -147,7 +147,7 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>(
147147 crate :: callbacks:: setup_callbacks ( ) ;
148148
149149 scoped_thread ( cfg, || {
150- syntax:: attr :: with_globals ( edition, || {
150+ syntax:: with_globals ( edition, || {
151151 ty:: tls:: GCX_PTR . set ( & Lock :: new ( 0 ) , || {
152152 if let Some ( stderr) = stderr {
153153 io:: set_panic ( Some ( box Sink ( stderr. clone ( ) ) ) ) ;
@@ -183,15 +183,15 @@ pub fn spawn_thread_pool<F: FnOnce() -> R + Send, R: Send>(
183183
184184 let with_pool = move |pool : & ThreadPool | pool. install ( move || f ( ) ) ;
185185
186- syntax:: attr :: with_globals ( edition, || {
187- syntax:: attr :: GLOBALS . with ( |syntax_globals| {
186+ syntax:: with_globals ( edition, || {
187+ syntax:: GLOBALS . with ( |syntax_globals| {
188188 rustc_span:: GLOBALS . with ( |rustc_span_globals| {
189189 // The main handler runs for each Rayon worker thread and sets up
190190 // the thread local rustc uses. syntax_globals and rustc_span_globals are
191191 // captured and set on the new threads. ty::tls::with_thread_locals sets up
192192 // thread local callbacks from libsyntax
193193 let main_handler = move |thread : ThreadBuilder | {
194- syntax:: attr :: GLOBALS . set ( syntax_globals, || {
194+ syntax:: GLOBALS . set ( syntax_globals, || {
195195 rustc_span:: GLOBALS . set ( rustc_span_globals, || {
196196 if let Some ( stderr) = stderr {
197197 io:: set_panic ( Some ( box Sink ( stderr. clone ( ) ) ) ) ;
0 commit comments