about summary refs log tree commit diff
path: root/library/std/src/thread/mod.rs
diff options
context:
space:
mode:
authorMahmoud Mazouz <mazouz.mahmoud@outlook.com>2025-02-24 09:50:46 +0100
committerGitHub <noreply@github.com>2025-02-24 09:50:46 +0100
commit1ccdc06136ccb134f30d6604e89a659eae62b032 (patch)
tree4cf0f80c020d4040eebd6bcf77b4c2ffc164f73d /library/std/src/thread/mod.rs
parentdb1f0d045887e8046dd542e119b27773991039b6 (diff)
downloadrust-1ccdc06136ccb134f30d6604e89a659eae62b032.tar.gz
rust-1ccdc06136ccb134f30d6604e89a659eae62b032.zip
Remove speculation on cause of error
Co-authored-by: Jubilee <workingjubilee@gmail.com>
Diffstat (limited to 'library/std/src/thread/mod.rs')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index f5101a66ce1..d9e28acdcda 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -1742,7 +1742,7 @@ impl<'scope, T> JoinInner<'scope, T> {
         if let Some(packet) = Arc::get_mut(&mut self.packet) {
             packet.result.get_mut().take().unwrap()
         } else {
-            Err(Box::new("thread terminated unexpectedly (e.g. due to OS intervention)"))
+            Err(Box::new("thread terminated unexpectedly"))
         }
     }
 }