mirror of https://github.com/rust-lang/rust.git
std: update abort message in `thread::set_current`
This commit is contained in:
parent
061d8731fb
commit
37c1758214
|
@ -690,7 +690,7 @@ pub(crate) fn set_current(thread: Thread) {
|
|||
// control over where this is called, so just abort if there is a bug.
|
||||
CURRENT.with(|current| match current.set(thread) {
|
||||
Ok(()) => {}
|
||||
Err(_) => rtabort!("should only be set once"),
|
||||
Err(_) => rtabort!("thread::set_current should only be called once per thread"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue