From 28f8e6244b3349b73ae9413fabaf6eb01c80807e Mon Sep 17 00:00:00 2001 From: Peter Todd Date: Tue, 13 Oct 2020 04:26:35 -0400 Subject: [PATCH] Impl Default for PhantomPinned --- library/core/src/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")]