File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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] {
331331}
332332
333333#[ 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" ) ]
335335impl < T : Copy , const N : usize > Copy for [ T ; N ] { }
336336
337337#[ 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" ) ]
339339impl < T : Clone , const N : usize > Clone for [ T ; N ] {
340+ #[ inline]
340341 fn clone ( & self ) -> Self {
341342 // SAFETY: we know for certain that this iterator will yield exactly `N`
342343 // items.
343344 unsafe { collect_into_array_unchecked ( & mut self . iter ( ) . cloned ( ) ) }
344345 }
345346
347+ #[ inline]
346348 fn clone_from ( & mut self , other : & Self ) {
347349 self . clone_from_slice ( other) ;
348350 }
You can’t perform that action at this time.
0 commit comments