@@ -232,15 +232,15 @@ impl Clone for SourceFile {
232232
233233impl Span {
234234 pub ( crate ) fn def_site ( ) -> Span {
235- Bridge :: with ( |bridge| bridge. context . def_site )
235+ Bridge :: with ( |bridge| bridge. globals . def_site )
236236 }
237237
238238 pub ( crate ) fn call_site ( ) -> Span {
239- Bridge :: with ( |bridge| bridge. context . call_site )
239+ Bridge :: with ( |bridge| bridge. globals . call_site )
240240 }
241241
242242 pub ( crate ) fn mixed_site ( ) -> Span {
243- Bridge :: with ( |bridge| bridge. context . mixed_site )
243+ Bridge :: with ( |bridge| bridge. globals . mixed_site )
244244 }
245245}
246246
@@ -285,8 +285,8 @@ struct Bridge<'a> {
285285 /// Server-side function that the client uses to make requests.
286286 dispatch : closure:: Closure < ' a , Buffer , Buffer > ,
287287
288- /// Provided context for this macro expansion.
289- context : ExpnContext < Span > ,
288+ /// Provided globals for this macro expansion.
289+ globals : ExpnGlobals < Span > ,
290290}
291291
292292impl < ' a > !Send for Bridge < ' a > { }
@@ -414,11 +414,11 @@ fn run_client<A: for<'a, 's> DecodeMut<'a, 's, ()>, R: Encode<()>>(
414414 maybe_install_panic_hook ( force_show_panics) ;
415415
416416 let reader = & mut & buf[ ..] ;
417- let ( input , context ) = <( A , ExpnContext < Span > ) >:: decode ( reader, & mut ( ) ) ;
417+ let ( globals , input ) = <( ExpnGlobals < Span > , A ) >:: decode ( reader, & mut ( ) ) ;
418418
419419 // Put the buffer we used for input back in the `Bridge` for requests.
420420 let new_state =
421- BridgeState :: Connected ( Bridge { cached_buffer : buf. take ( ) , dispatch, context } ) ;
421+ BridgeState :: Connected ( Bridge { cached_buffer : buf. take ( ) , dispatch, globals } ) ;
422422
423423 BRIDGE_STATE . with ( |state| {
424424 state. set ( new_state, || {
0 commit comments