about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorStephen M. Coakley <me@stephencoakley.com>2017-04-04 10:44:57 -0500
committerStephen M. Coakley <me@stephencoakley.com>2017-04-04 10:44:57 -0500
commitcd14a323f42cf57695e713a4f4fd00fddc10efd5 (patch)
treecb621ea45706a669f3db03a0a7f608cb62f601ac /src/libstd/thread
parent282029526646fc93cd8bc098191c4e110a4c4938 (diff)
downloadrust-cd14a323f42cf57695e713a4f4fd00fddc10efd5.tar.gz
rust-cd14a323f42cf57695e713a4f4fd00fddc10efd5.zip
Use derived Debug for ThreadId
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 21f9757ad11..9116f541736 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -670,7 +670,7 @@ pub fn park_timeout(dur: Duration) {
 /// assert!(thread::current().id() != other_thread_id);
 /// ```
 #[unstable(feature = "thread_id", issue = "21507")]
-#[derive(Clone, Copy, Eq, PartialEq, Hash)]
+#[derive(Eq, PartialEq, Clone, Copy, Hash, Debug)]
 pub struct ThreadId(u64);
 
 impl ThreadId {
@@ -699,13 +699,6 @@ impl ThreadId {
     }
 }
 
-#[unstable(feature = "thread_id", issue = "21507")]
-impl fmt::Debug for ThreadId {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        f.pad("ThreadId { .. }")
-    }
-}
-
 ////////////////////////////////////////////////////////////////////////////////
 // Thread
 ////////////////////////////////////////////////////////////////////////////////