File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,8 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
277277#[ unstable( feature = "deref_pure_trait" , issue = "87121" ) ]
278278unsafe impl < T : ?Sized > DerefPure for ManuallyDrop < T > { }
279279
280+ /// If a value's type is `Copy`, then it has a trivial destructor,
281+ /// so wrapping it in `ManuallyDrop` can never have undesired effects.
280282#[ stable( feature = "from_wrapper_impls" , since = "CURRENT_RUSTC_VERSION" ) ]
281283impl < T > From < T > for ManuallyDrop < T >
282284where
Original file line number Diff line number Diff line change @@ -312,6 +312,8 @@ impl<S: AsyncIterator> AsyncIterator for AssertUnwindSafe<S> {
312312 }
313313}
314314
315+ /// If a value's type is already `UnwindSafe`,
316+ /// wrapping it in `AssertUnwindSafe` is never incorrect.
315317#[ stable( feature = "from_wrapper_impls" , since = "CURRENT_RUSTC_VERSION" ) ]
316318impl < T > From < T > for AssertUnwindSafe < T >
317319where
You can’t perform that action at this time.
0 commit comments