@@ -307,7 +307,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
307307 |ecx| & mut ecx. machine . sync . mutexes ,
308308 |ecx| initialize_data ( ecx) . map ( |data| Mutex { data, ..Default :: default ( ) } ) ,
309309 ) ?
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 ( )
311312 }
312313
313314 /// Retrieve the additional data stored for a mutex.
@@ -334,7 +335,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
334335 |ecx| & mut ecx. machine . sync . rwlocks ,
335336 |ecx| initialize_data ( ecx) . map ( |data| RwLock { data, ..Default :: default ( ) } ) ,
336337 ) ?
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 ( )
338340 }
339341
340342 /// Retrieve the additional data stored for a rwlock.
@@ -375,7 +377,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
375377 |ecx| & mut ecx. machine . sync . condvars ,
376378 |ecx| initialize_data ( ecx) . map ( |data| Condvar { data, ..Default :: default ( ) } ) ,
377379 ) ?
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 ( )
379382 }
380383
381384 /// Retrieve the additional data stored for a condvar.
0 commit comments