mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 11:35:21 +03:00
(cleanup) Improve rtabort message for atomic-sleep.
This commit is contained in:
@@ -590,7 +590,8 @@ pub fn allow_yield(&mut self) {
|
||||
#[inline]
|
||||
pub fn assert_may_sleep(&self) {
|
||||
if self.wont_sleep != 0 {
|
||||
rtabort!("illegal atomic-sleep: can't deschedule inside atomically()");
|
||||
rtabort!("illegal atomic-sleep: attempt to reschedule while \
|
||||
using an Exclusive or LittleLock");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user