@@ -232,15 +232,15 @@ impl Clone for SourceFile {
232
232
233
233
impl Span {
234
234
pub ( crate ) fn def_site ( ) -> Span {
235
- Bridge :: with ( |bridge| bridge. context . def_site )
235
+ Bridge :: with ( |bridge| bridge. globals . def_site )
236
236
}
237
237
238
238
pub ( crate ) fn call_site ( ) -> Span {
239
- Bridge :: with ( |bridge| bridge. context . call_site )
239
+ Bridge :: with ( |bridge| bridge. globals . call_site )
240
240
}
241
241
242
242
pub ( crate ) fn mixed_site ( ) -> Span {
243
- Bridge :: with ( |bridge| bridge. context . mixed_site )
243
+ Bridge :: with ( |bridge| bridge. globals . mixed_site )
244
244
}
245
245
}
246
246
@@ -285,8 +285,8 @@ struct Bridge<'a> {
285
285
/// Server-side function that the client uses to make requests.
286
286
dispatch : closure:: Closure < ' a , Buffer , Buffer > ,
287
287
288
- /// Provided context for this macro expansion.
289
- context : ExpnContext < Span > ,
288
+ /// Provided globals for this macro expansion.
289
+ globals : ExpnGlobals < Span > ,
290
290
}
291
291
292
292
impl < ' a > !Send for Bridge < ' a > { }
@@ -414,11 +414,11 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>(
414
414
maybe_install_panic_hook ( force_show_panics) ;
415
415
416
416
let reader = & mut & buf[ ..] ;
417
- let ( input , context ) = <( A , ExpnContext < Span > ) >:: decode ( reader, & mut ( ) ) ;
417
+ let ( globals , input ) = <( ExpnGlobals < Span > , A ) >:: decode ( reader, & mut ( ) ) ;
418
418
419
419
// Put the buffer we used for input back in the `Bridge` for requests.
420
420
let new_state =
421
- BridgeState :: Connected ( Bridge { cached_buffer : buf. take ( ) , dispatch, context } ) ;
421
+ BridgeState :: Connected ( Bridge { cached_buffer : buf. take ( ) , dispatch, globals } ) ;
422
422
423
423
BRIDGE_STATE . with ( |state| {
424
424
state. set ( new_state, || {
0 commit comments