about summary refs log tree commit diff
path: root/src/libstd/panic.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-02-21 14:36:03 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-02-21 14:36:24 -0800
commit347e1af66b4b705594c3f668460f252af4e87146 (patch)
tree9801805478fe359e58e276b29cb0c10c41d1cfee /src/libstd/panic.rs
parent3954c70537cc78dc4a8e28c6ffa0a8ae5198387a (diff)
downloadrust-347e1af66b4b705594c3f668460f252af4e87146.tar.gz
rust-347e1af66b4b705594c3f668460f252af4e87146.zip
std: Relax UnwindSafe impl for Unique
Add the `?Sized` bound as we don't require the type to be sized.

Closes #40011
Diffstat (limited to 'src/libstd/panic.rs')
-rw-r--r--src/libstd/panic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs
index ac0d0d2afb8..f99634ecac2 100644
--- a/src/libstd/panic.rs
+++ b/src/libstd/panic.rs
@@ -198,7 +198,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *const T {}
 #[stable(feature = "catch_unwind", since = "1.9.0")]
 impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *mut T {}
 #[unstable(feature = "unique", issue = "27730")]
-impl<T: UnwindSafe> UnwindSafe for Unique<T> {}
+impl<T: UnwindSafe + ?Sized> UnwindSafe for Unique<T> {}
 #[unstable(feature = "shared", issue = "27730")]
 impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Shared<T> {}
 #[stable(feature = "catch_unwind", since = "1.9.0")]