@@ -307,7 +307,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
307
307
|ecx| & mut ecx. machine . sync . mutexes ,
308
308
|ecx| initialize_data ( ecx) . map ( |data| Mutex { data, ..Default :: default ( ) } ) ,
309
309
) ?
310
- . ok_or_else ( || err_ub_format ! ( "mutex has invalid ID" ) ) . into ( )
310
+ . ok_or_else ( || err_ub_format ! ( "mutex has invalid ID" ) )
311
+ . into ( )
311
312
}
312
313
313
314
/// Retrieve the additional data stored for a mutex.
@@ -334,7 +335,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
334
335
|ecx| & mut ecx. machine . sync . rwlocks ,
335
336
|ecx| initialize_data ( ecx) . map ( |data| RwLock { data, ..Default :: default ( ) } ) ,
336
337
) ?
337
- . ok_or_else ( || err_ub_format ! ( "rwlock has invalid ID" ) ) . into ( )
338
+ . ok_or_else ( || err_ub_format ! ( "rwlock has invalid ID" ) )
339
+ . into ( )
338
340
}
339
341
340
342
/// Retrieve the additional data stored for a rwlock.
@@ -375,7 +377,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
375
377
|ecx| & mut ecx. machine . sync . condvars ,
376
378
|ecx| initialize_data ( ecx) . map ( |data| Condvar { data, ..Default :: default ( ) } ) ,
377
379
) ?
378
- . ok_or_else ( || err_ub_format ! ( "condvar has invalid ID" ) ) . into ( )
380
+ . ok_or_else ( || err_ub_format ! ( "condvar has invalid ID" ) )
381
+ . into ( )
379
382
}
380
383
381
384
/// Retrieve the additional data stored for a condvar.
0 commit comments