File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ unsafe impl Send for UnsafeMessage {}
46
46
47
47
impl UnsafeMessage {
48
48
/// Send the message.
49
- fn send ( self ) -> Result < ( ) , mpsc :: SendError < UnsafeMessage > > {
49
+ fn send ( self ) {
50
50
thread_local ! {
51
51
/// The Sender owned by the local thread
52
52
static LOCAL_MESSAGE_SENDER : mpsc:: Sender <UnsafeMessage > =
@@ -55,7 +55,9 @@ impl UnsafeMessage {
55
55
. lock( ) . unwrap( )
56
56
. clone( ) ;
57
57
}
58
- LOCAL_MESSAGE_SENDER . with ( |sender| sender. send ( self ) )
58
+ LOCAL_MESSAGE_SENDER . with ( |sender| {
59
+ sender. send ( self ) . expect ( "rustc thread hung up before lazy JIT request was sent" )
60
+ } )
59
61
}
60
62
}
61
63
@@ -231,9 +233,7 @@ extern "C" fn clif_jit_fn(
231
233
) -> * const u8 {
232
234
// send the JIT request to the rustc thread, with a channel for the response
233
235
let ( tx, rx) = mpsc:: channel ( ) ;
234
- UnsafeMessage :: JitFn { instance_ptr, trampoline_ptr, tx }
235
- . send ( )
236
- . expect ( "rustc thread hung up before lazy JIT request was sent" ) ;
236
+ UnsafeMessage :: JitFn { instance_ptr, trampoline_ptr, tx } . send ( ) ;
237
237
238
238
// block on JIT compilation result
239
239
rx. recv ( ) . expect ( "rustc thread hung up before responding to sent lazy JIT request" )
You can’t perform that action at this time.
0 commit comments