@@ -78,7 +78,7 @@ pub struct NewAxis;
78
78
/// A slice (range with step), an index, or a new axis token.
79
79
///
80
80
/// 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>`.
82
82
///
83
83
/// ## Examples
84
84
///
@@ -721,9 +721,7 @@ impl_slicenextdim!((), NewAxis, Ix0, Ix1);
721
721
///
722
722
/// `s![]` takes a list of ranges/slices/indices/new-axes, separated by comma,
723
723
/// 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.
727
725
///
728
726
/// Each range/slice/index uses signed indices, where a negative value is
729
727
/// counted from the end of the axis. Step sizes are also signed and may be
@@ -907,9 +905,7 @@ macro_rules! s(
907
905
<$crate:: AxisSliceInfo as :: std:: convert:: From <_>>:: from( $r) . step_by( $s as isize )
908
906
} ;
909
907
( $( $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
913
909
:: std:: marker:: PhantomData :: <$crate:: Ix0 >,
914
910
:: std:: marker:: PhantomData :: <$crate:: Ix0 >,
915
911
[ ]
@@ -951,7 +947,7 @@ where
951
947
private_impl ! { }
952
948
}
953
949
954
- impl < ' a , A , D , I0 > MultiSliceArg < ' a , A , D > for ( & I0 , )
950
+ impl < ' a , A , D , I0 > MultiSliceArg < ' a , A , D > for ( I0 , )
955
951
where
956
952
A : ' a ,
957
953
D : Dimension ,
@@ -960,7 +956,7 @@ where
960
956
type Output = ( ArrayViewMut < ' a , A , I0 :: OutDim > , ) ;
961
957
962
958
fn multi_slice_move ( & self , view : ArrayViewMut < ' a , A , D > ) -> Self :: Output {
963
- ( view. slice_move ( self . 0 ) , )
959
+ ( view. slice_move ( & self . 0 ) , )
964
960
}
965
961
966
962
private_impl ! { }
@@ -971,7 +967,7 @@ macro_rules! impl_multislice_tuple {
971
967
impl_multislice_tuple!( @def_impl ( $( $but_last, ) * $last, ) , [ $( $but_last) * ] $last) ;
972
968
} ;
973
969
( @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, ) * )
975
971
where
976
972
A : ' a,
977
973
D : Dimension ,
@@ -981,7 +977,7 @@ macro_rules! impl_multislice_tuple {
981
977
982
978
fn multi_slice_move( & self , view: ArrayViewMut <' a, A , D >) -> Self :: Output {
983
979
#[ allow( non_snake_case) ]
984
- let & ( $( $all, ) * ) = self ;
980
+ let ( $( $all, ) * ) = self ;
985
981
986
982
let shape = view. raw_dim( ) ;
987
983
assert!( !impl_multislice_tuple!( @intersects_self & shape, ( $( $all, ) * ) ) ) ;
0 commit comments