Auto merge of #145665 - GrigorenkoPV:144707, r=tgross35 · rust-lang/rust@a8664a1 (original) (raw)
`@@ -7,6 +7,7 @@ use core::mem::{ManuallyDrop, MaybeUninit, SizedTypeProperties};
`
7
7
`use core::num::NonZero;
`
8
8
`#[cfg(not(no_global_oom_handling))]
`
9
9
`use core::ops::Deref;
`
``
10
`+
use core::panic::UnwindSafe;
`
10
11
`use core::ptr::{self, NonNull};
`
11
12
`use core::slice::{self};
`
12
13
`use core::{array, fmt};
`
`@@ -60,6 +61,11 @@ pub struct IntoIter<
`
60
61
`pub(super) end: *const T,
`
61
62
`}
`
62
63
``
``
64
`` +
// Manually mirroring what Vec has,
``
``
65
`` +
// because otherwise we get T: RefUnwindSafe from NonNull.
``
``
66
`+
#[stable(feature = "catch_unwind", since = "1.9.0")]
`
``
67
`+
impl<T: UnwindSafe, A: Allocator + UnwindSafe> UnwindSafe for IntoIter<T, A> {}
`
``
68
+
63
69
`#[stable(feature = "vec_intoiter_debug", since = "1.13.0")]
`
64
70
`impl<T: fmt::Debug, A: Allocator> fmt::Debug for IntoIter<T, A> {
`
65
71
`fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
`