@@ -126,7 +126,7 @@ impl<T, const N: usize> IntoIter<T, N> {
126
126
/// None => {
127
127
/// // SAFETY: We've initialized the first `i` items
128
128
/// unsafe {
129
- /// return Err(IntoIter::from_raw_parts (buffer, 0..i));
129
+ /// return Err(IntoIter::new_unchecked (buffer, 0..i));
130
130
/// }
131
131
/// }
132
132
/// }
@@ -143,7 +143,7 @@ impl<T, const N: usize> IntoIter<T, N> {
143
143
/// ```
144
144
#[ unstable( feature = "array_into_iter_constructors" , issue = "91583" ) ]
145
145
#[ rustc_const_unstable( feature = "const_array_into_iter_constructors" , issue = "91583" ) ]
146
- pub const unsafe fn from_raw_parts (
146
+ pub const unsafe fn new_unchecked (
147
147
buffer : [ MaybeUninit < T > ; N ] ,
148
148
initialized : Range < usize > ,
149
149
) -> Self {
@@ -210,7 +210,7 @@ impl<T, const N: usize> IntoIter<T, N> {
210
210
211
211
// SAFETY: We're telling it that none of the elements are initialized,
212
212
// which is trivially true. And ∀N: usize, 0 <= N.
213
- unsafe { Self :: from_raw_parts ( buffer, initialized) }
213
+ unsafe { Self :: new_unchecked ( buffer, initialized) }
214
214
}
215
215
216
216
/// Returns an immutable slice of all elements that have not been yielded
0 commit comments