File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,10 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
278278unsafe impl < T : ?Sized > DerefPure for ManuallyDrop < T > { }
279279
280280#[ stable( feature = "from_wrapper_impls" , since = "CURRENT_RUSTC_VERSION" ) ]
281- impl < T > From < T > for ManuallyDrop < T > {
281+ impl < T > From < T > for ManuallyDrop < T >
282+ where
283+ T : Copy ,
284+ {
282285 #[ inline( always) ]
283286 fn from ( value : T ) -> Self {
284287 Self :: new ( value)
Original file line number Diff line number Diff line change @@ -313,7 +313,10 @@ impl<S: AsyncIterator> AsyncIterator for AssertUnwindSafe<S> {
313313}
314314
315315#[ stable( feature = "from_wrapper_impls" , since = "CURRENT_RUSTC_VERSION" ) ]
316- impl < T > From < T > for AssertUnwindSafe < T > {
316+ impl < T > From < T > for AssertUnwindSafe < T >
317+ where
318+ T : UnwindSafe ,
319+ {
317320 #[ inline( always) ]
318321 fn from ( value : T ) -> Self {
319322 Self ( value)
You can’t perform that action at this time.
0 commit comments