File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -331,18 +331,20 @@ impl<T: Ord, const N: usize> Ord for [T; N] {
331
331
}
332
332
333
333
#[ cfg( not( bootstrap) ) ]
334
- #[ stable( feature = "copy_clone_array_lib" , since = "1.55 .0" ) ]
334
+ #[ stable( feature = "copy_clone_array_lib" , since = "1.58 .0" ) ]
335
335
impl < T : Copy , const N : usize > Copy for [ T ; N ] { }
336
336
337
337
#[ cfg( not( bootstrap) ) ]
338
- #[ stable( feature = "copy_clone_array_lib" , since = "1.55 .0" ) ]
338
+ #[ stable( feature = "copy_clone_array_lib" , since = "1.58 .0" ) ]
339
339
impl < T : Clone , const N : usize > Clone for [ T ; N ] {
340
+ #[ inline]
340
341
fn clone ( & self ) -> Self {
341
342
// SAFETY: we know for certain that this iterator will yield exactly `N`
342
343
// items.
343
344
unsafe { collect_into_array_unchecked ( & mut self . iter ( ) . cloned ( ) ) }
344
345
}
345
346
347
+ #[ inline]
346
348
fn clone_from ( & mut self , other : & Self ) {
347
349
self . clone_from_slice ( other) ;
348
350
}
You can’t perform that action at this time.
0 commit comments