Skip to content

Commit 37c1758

Browse files
committed
std: update abort message in thread::set_current
1 parent 061d873 commit 37c1758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ pub(crate) fn set_current(thread: Thread) {
690690
// control over where this is called, so just abort if there is a bug.
691691
CURRENT.with(|current| match current.set(thread) {
692692
Ok(()) => {}
693-
Err(_) => rtabort!("should only be set once"),
693+
Err(_) => rtabort!("thread::set_current should only be called once per thread"),
694694
});
695695
}
696696

0 commit comments

Comments
 (0)