@@ -78,7 +78,7 @@ pub struct NewAxis;
7878/// A slice (range with step), an index, or a new axis token.
7979///
8080/// See also the [`s![]`](macro.s!.html) macro for a convenient way to create a
81- /// `& SliceInfo<[AxisSliceInfo; n], Din, Dout>`.
81+ /// `SliceInfo<[AxisSliceInfo; n], Din, Dout>`.
8282///
8383/// ## Examples
8484///
@@ -721,9 +721,7 @@ impl_slicenextdim!((), NewAxis, Ix0, Ix1);
721721///
722722/// `s![]` takes a list of ranges/slices/indices/new-axes, separated by comma,
723723/// with optional step sizes that are separated from the range by a semicolon.
724- /// It is converted into a [`&SliceInfo`] instance.
725- ///
726- /// [`&SliceInfo`]: struct.SliceInfo.html
724+ /// It is converted into a [`SliceInfo`] instance.
727725///
728726/// Each range/slice/index uses signed indices, where a negative value is
729727/// counted from the end of the axis. Step sizes are also signed and may be
@@ -907,9 +905,7 @@ macro_rules! s(
907905 <$crate:: AxisSliceInfo as :: std:: convert:: From <_>>:: from( $r) . step_by( $s as isize )
908906 } ;
909907 ( $( $t: tt) * ) => {
910- // The extra `*&` is a workaround for this compiler bug:
911- // https://github.com/rust-lang/rust/issues/23014
912- & * & $crate:: s![ @parse
908+ $crate:: s![ @parse
913909 :: std:: marker:: PhantomData :: <$crate:: Ix0 >,
914910 :: std:: marker:: PhantomData :: <$crate:: Ix0 >,
915911 [ ]
@@ -951,7 +947,7 @@ where
951947 private_impl ! { }
952948}
953949
954- impl < ' a , A , D , I0 > MultiSliceArg < ' a , A , D > for ( & I0 , )
950+ impl < ' a , A , D , I0 > MultiSliceArg < ' a , A , D > for ( I0 , )
955951where
956952 A : ' a ,
957953 D : Dimension ,
@@ -960,7 +956,7 @@ where
960956 type Output = ( ArrayViewMut < ' a , A , I0 :: OutDim > , ) ;
961957
962958 fn multi_slice_move ( & self , view : ArrayViewMut < ' a , A , D > ) -> Self :: Output {
963- ( view. slice_move ( self . 0 ) , )
959+ ( view. slice_move ( & self . 0 ) , )
964960 }
965961
966962 private_impl ! { }
@@ -971,7 +967,7 @@ macro_rules! impl_multislice_tuple {
971967 impl_multislice_tuple!( @def_impl ( $( $but_last, ) * $last, ) , [ $( $but_last) * ] $last) ;
972968 } ;
973969 ( @def_impl ( $( $all: ident, ) * ) , [ $( $but_last: ident) * ] $last: ident) => {
974- impl <' a, A , D , $( $all, ) * > MultiSliceArg <' a, A , D > for ( $( & $all, ) * )
970+ impl <' a, A , D , $( $all, ) * > MultiSliceArg <' a, A , D > for ( $( $all, ) * )
975971 where
976972 A : ' a,
977973 D : Dimension ,
@@ -981,7 +977,7 @@ macro_rules! impl_multislice_tuple {
981977
982978 fn multi_slice_move( & self , view: ArrayViewMut <' a, A , D >) -> Self :: Output {
983979 #[ allow( non_snake_case) ]
984- let & ( $( $all, ) * ) = self ;
980+ let ( $( $all, ) * ) = self ;
985981
986982 let shape = view. raw_dim( ) ;
987983 assert!( !impl_multislice_tuple!( @intersects_self & shape, ( $( $all, ) * ) ) ) ;
0 commit comments