@@ -315,9 +315,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
315315 offset : u64 ,
316316 ) -> InterpResult < ' tcx , RwLockId > {
317317 let this = self . eval_context_mut ( ) ;
318- this. rwlock_get_or_create (
319- |ecx, next_id| Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?) ,
320- )
318+ this. rwlock_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
321319 }
322320
323321 fn condvar_get_or_create_id (
@@ -326,9 +324,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
326324 offset : u64 ,
327325 ) -> InterpResult < ' tcx , CondvarId > {
328326 let this = self . eval_context_mut ( ) ;
329- this. condvar_get_or_create ( |ecx, next_id| {
330- Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?)
331- } )
327+ this. condvar_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
332328 }
333329
334330 fn init_once_get_or_create_id (
@@ -337,9 +333,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
337333 offset : u64 ,
338334 ) -> InterpResult < ' tcx , InitOnceId > {
339335 let this = self . eval_context_mut ( ) ;
340- this. init_once_get_or_create ( |ecx, next_id| {
341- Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?)
342- } )
336+ this. init_once_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
343337 }
344338
345339 #[ inline]
0 commit comments