@@ -26,7 +26,8 @@ thread_local! {
2626}
2727
2828/// The Sender owned by the rustc thread
29- static GLOBAL_MESSAGE_SENDER : SyncOnceCell < Mutex < mpsc:: Sender < UnsafeMessage > > > = SyncOnceCell :: new ( ) ;
29+ static GLOBAL_MESSAGE_SENDER : SyncOnceCell < Mutex < mpsc:: Sender < UnsafeMessage > > > =
30+ SyncOnceCell :: new ( ) ;
3031
3132/// A message that is sent from the jitted runtime to the rustc thread.
3233/// Senders are responsible for upholding `Send` semantics.
@@ -195,23 +196,25 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
195196 // lazy JIT compilation request - compile requested instance and return pointer to result
196197 UnsafeMessage :: JitFn { instance_ptr, trampoline_ptr, tx } => {
197198 tx. send ( jit_fn ( instance_ptr, trampoline_ptr) )
198- . expect ( "jitted runtime hung up before response to lazy JIT request was sent" ) ;
199+ . expect ( "jitted runtime hung up before response to lazy JIT request was sent" ) ;
199200 }
200201 }
201202 }
202203}
203204
204205#[ no_mangle]
205- extern "C" fn __clif_jit_fn ( instance_ptr : * const Instance < ' static > , trampoline_ptr : * const u8 ) -> * const u8 {
206+ extern "C" fn __clif_jit_fn (
207+ instance_ptr : * const Instance < ' static > ,
208+ trampoline_ptr : * const u8 ,
209+ ) -> * const u8 {
206210 // send the JIT request to the rustc thread, with a channel for the response
207211 let ( tx, rx) = mpsc:: channel ( ) ;
208212 UnsafeMessage :: JitFn { instance_ptr, trampoline_ptr, tx }
209213 . send ( )
210214 . expect ( "rustc thread hung up before lazy JIT request was sent" ) ;
211215
212216 // block on JIT compilation result
213- rx. recv ( )
214- . expect ( "rustc thread hung up before responding to sent lazy JIT request" )
217+ rx. recv ( ) . expect ( "rustc thread hung up before responding to sent lazy JIT request" )
215218}
216219
217220fn jit_fn ( instance_ptr : * const Instance < ' static > , trampoline_ptr : * const u8 ) -> * const u8 {
0 commit comments