Skip to content

Commit d803c18

Browse files
committed
(cleanup) Improve rtabort message for atomic-sleep.
1 parent 678f506 commit d803c18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/rt/kill.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,8 @@ impl Death {
590590
#[inline]
591591
pub fn assert_may_sleep(&self) {
592592
if self.wont_sleep != 0 {
593-
rtabort!("illegal atomic-sleep: can't deschedule inside atomically()");
593+
rtabort!("illegal atomic-sleep: attempt to reschedule while \
594+
using an Exclusive or LittleLock");
594595
}
595596
}
596597
}

0 commit comments

Comments
 (0)