Skip to content

Commit 8e8c9c8

Browse files
committed
turns out we can enable this sanity check now
1 parent 3468504 commit 8e8c9c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_mir/interpret/memory.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,7 @@ impl<'a, 'tcx, M: Machine<'tcx>> Memory<'a, 'tcx, M> {
547547
None => {
548548
// Make sure we did not try to release someone else's lock.
549549
if !is_our_lock && lock.active != NoLock {
550-
// FIXME: For the same reason that we have to live with suspensions already existing,
551-
// we also cannot be sure here if things really are going wrong. So accept this for now.
552-
//return err!(InvalidMemoryLockRelease { ptr, len, frame: cur_frame, lock: lock.active.clone() });
550+
return err!(InvalidMemoryLockRelease { ptr, len, frame: cur_frame, lock: lock.active.clone() });
553551
}
554552
}
555553
}

0 commit comments

Comments
 (0)