We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
thread::set_current
1 parent 061d873 commit 37c1758Copy full SHA for 37c1758
library/std/src/thread/mod.rs
@@ -690,7 +690,7 @@ pub(crate) fn set_current(thread: Thread) {
690
// control over where this is called, so just abort if there is a bug.
691
CURRENT.with(|current| match current.set(thread) {
692
Ok(()) => {}
693
- Err(_) => rtabort!("should only be set once"),
+ Err(_) => rtabort!("thread::set_current should only be called once per thread"),
694
});
695
}
696
0 commit comments