Skip to content

Commit 51152dd

Browse files
committed
Make recursive multislice! calls use $crate::
1 parent 1fdc903 commit 51152dd

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/slice.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,8 @@ macro_rules! multislice(
746746
// Check that $info doesn't intersect any of the other info in the tuple.
747747
(@check $view:expr, $info:expr, ($other:expr, $($more:tt)*)) => {
748748
{
749-
multislice!(@check $view, $info, ($other,));
750-
multislice!(@check $view, $info, ($($more)*));
749+
$crate::multislice!(@check $view, $info, ($other,));
750+
$crate::multislice!(@check $view, $info, ($($more)*));
751751
}
752752
};
753753
// Create the (mutable) slice.
@@ -779,7 +779,7 @@ macro_rules! multislice(
779779
(mut $info:expr)
780780
) => {
781781
// Add trailing comma.
782-
multislice!(
782+
$crate::multislice!(
783783
@parse $view, $life,
784784
($($sliced)*),
785785
($($mut_info)*),
@@ -796,7 +796,7 @@ macro_rules! multislice(
796796
($info:expr)
797797
) => {
798798
// Add trailing comma.
799-
multislice!(
799+
$crate::multislice!(
800800
@parse $view, $life,
801801
($($sliced)*),
802802
($($mut_info)*),
@@ -815,9 +815,9 @@ macro_rules! multislice(
815815
match $info {
816816
info => {
817817
// Check for overlap with all previous mutable and immutable slices.
818-
multislice!(@check $view, info, ($($mut_info)*));
819-
multislice!(@check $view, info, ($($immut_info)*));
820-
($($sliced)* multislice!(@slice $view, $life, mut info),)
818+
$crate::multislice!(@check $view, info, ($($mut_info)*));
819+
$crate::multislice!(@check $view, info, ($($immut_info)*));
820+
($($sliced)* $crate::multislice!(@slice $view, $life, mut info),)
821821
}
822822
}
823823
};
@@ -832,8 +832,8 @@ macro_rules! multislice(
832832
match $info {
833833
info => {
834834
// Check for overlap with all previous mutable slices.
835-
multislice!(@check $view, info, ($($mut_info)*));
836-
($($sliced)* multislice!(@slice $view, $life, info),)
835+
$crate::multislice!(@check $view, info, ($($mut_info)*));
836+
($($sliced)* $crate::multislice!(@slice $view, $life, info),)
837837
}
838838
}
839839
};
@@ -848,11 +848,11 @@ macro_rules! multislice(
848848
match $info {
849849
info => {
850850
// Check for overlap with all previous mutable and immutable slices.
851-
multislice!(@check $view, info, ($($mut_info)*));
852-
multislice!(@check $view, info, ($($immut_info)*));
853-
multislice!(
851+
$crate::multislice!(@check $view, info, ($($mut_info)*));
852+
$crate::multislice!(@check $view, info, ($($immut_info)*));
853+
$crate::multislice!(
854854
@parse $view, $life,
855-
($($sliced)* multislice!(@slice $view, $life, mut info),),
855+
($($sliced)* $crate::multislice!(@slice $view, $life, mut info),),
856856
($($mut_info)* info,),
857857
($($immut_info)*),
858858
($($t)*)
@@ -871,10 +871,10 @@ macro_rules! multislice(
871871
match $info {
872872
info => {
873873
// Check for overlap with all previous mutable slices.
874-
multislice!(@check $view, info, ($($mut_info)*));
875-
multislice!(
874+
$crate::multislice!(@check $view, info, ($($mut_info)*));
875+
$crate::multislice!(
876876
@parse $view, $life,
877-
($($sliced)* multislice!(@slice $view, $life, info),),
877+
($($sliced)* $crate::multislice!(@slice $view, $life, info),),
878878
($($mut_info)*),
879879
($($immut_info)* info,),
880880
($($t)*)
@@ -889,7 +889,7 @@ macro_rules! multislice(
889889
let mut view = $crate::ArrayBase::view_mut(&mut $arr);
890890
($crate::life_of_view_mut(&view), view.raw_view_mut())
891891
};
892-
multislice!(@parse raw_view, life, (), (), (), ($($t)*))
892+
$crate::multislice!(@parse raw_view, life, (), (), (), ($($t)*))
893893
}
894894
};
895895
);

0 commit comments

Comments
 (0)