@@ -1559,7 +1559,7 @@ impl<T> [T] {
15591559 ///
15601560 /// # Examples
15611561 ///
1562- /// ```compile_fail
1562+ /// ```
15631563 /// #![feature(slice_split_at_unchecked)]
15641564 ///
15651565 /// let v = [1, 2, 3, 4, 5, 6];
@@ -1584,7 +1584,7 @@ impl<T> [T] {
15841584 /// ```
15851585 #[ unstable( feature = "slice_split_at_unchecked" , reason = "new API" , issue = "76014" ) ]
15861586 #[ inline]
1587- unsafe fn split_at_unchecked ( & self , mid : usize ) -> ( & [ T ] , & [ T ] ) {
1587+ pub unsafe fn split_at_unchecked ( & self , mid : usize ) -> ( & [ T ] , & [ T ] ) {
15881588 // SAFETY: Caller has to check that `0 <= mid <= self.len()`
15891589 unsafe { ( self . get_unchecked ( ..mid) , self . get_unchecked ( mid..) ) }
15901590 }
@@ -1608,7 +1608,7 @@ impl<T> [T] {
16081608 ///
16091609 /// # Examples
16101610 ///
1611- /// ```compile_fail
1611+ /// ```
16121612 /// #![feature(slice_split_at_unchecked)]
16131613 ///
16141614 /// let mut v = [1, 0, 3, 0, 5, 6];
@@ -1624,7 +1624,7 @@ impl<T> [T] {
16241624 /// ```
16251625 #[ unstable( feature = "slice_split_at_unchecked" , reason = "new API" , issue = "76014" ) ]
16261626 #[ inline]
1627- unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
1627+ pub unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
16281628 let len = self . len ( ) ;
16291629 let ptr = self . as_mut_ptr ( ) ;
16301630
0 commit comments