about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2020-10-13 04:26:35 -0400
committerPeter Todd <pete@petertodd.org>2020-10-13 04:26:35 -0400
commit28f8e6244b3349b73ae9413fabaf6eb01c80807e (patch)
tree779ce0a046a3f9c8cafd9dea105cbc765b6b1307
parent4d63435aaef3bdfec37ddf957b3f6e66e771ee2c (diff)
downloadrust-28f8e6244b3349b73ae9413fabaf6eb01c80807e.tar.gz
rust-28f8e6244b3349b73ae9413fabaf6eb01c80807e.zip
Impl Default for PhantomPinned
-rw-r--r--library/core/src/marker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs
index cdf742057b7..50c2ebd2dbe 100644
--- a/library/core/src/marker.rs
+++ b/library/core/src/marker.rs
@@ -772,7 +772,7 @@ pub auto trait Unpin {}
 ///
 /// If a type contains a `PhantomPinned`, it will not implement `Unpin` by default.
 #[stable(feature = "pin", since = "1.33.0")]
-#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
+#[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
 pub struct PhantomPinned;
 
 #[stable(feature = "pin", since = "1.33.0")]