@@ -733,7 +733,7 @@ macro_rules! iterator {
733
733
}
734
734
735
735
macro_rules! make_slice {
736
- ( $t: ty - > $result: ty: $start: expr, $end: expr) => { {
736
+ ( $t: ty = > $result: ty: $start: expr, $end: expr) => { {
737
737
let diff = $end as uint - $start as uint;
738
738
let len = if mem:: size_of:: <T >( ) == 0 {
739
739
diff
@@ -797,7 +797,7 @@ impl<'a, T> Iter<'a, T> {
797
797
/// iterator can continue to be used while this exists.
798
798
#[ experimental]
799
799
pub fn as_slice ( & self ) -> & ' a [ T ] {
800
- make_slice ! ( T - > & ' a [ T ] : self . ptr, self . end)
800
+ make_slice ! ( T = > & ' a [ T ] : self . ptr, self . end)
801
801
}
802
802
}
803
803
@@ -876,7 +876,7 @@ impl<'a, T> ops::Index<ops::FullRange> for IterMut<'a, T> {
876
876
type Output = [ T ] ;
877
877
#[ inline]
878
878
fn index ( & self , _index : & ops:: FullRange ) -> & [ T ] {
879
- make_slice ! ( T - > & [ T ] : self . ptr, self . end)
879
+ make_slice ! ( T = > & [ T ] : self . ptr, self . end)
880
880
}
881
881
}
882
882
@@ -909,7 +909,7 @@ impl<'a, T> ops::IndexMut<ops::FullRange> for IterMut<'a, T> {
909
909
type Output = [ T ] ;
910
910
#[ inline]
911
911
fn index_mut ( & mut self , _index : & ops:: FullRange ) -> & mut [ T ] {
912
- make_slice ! ( T - > & mut [ T ] : self . ptr, self . end)
912
+ make_slice ! ( T = > & mut [ T ] : self . ptr, self . end)
913
913
}
914
914
}
915
915
@@ -923,7 +923,7 @@ impl<'a, T> IterMut<'a, T> {
923
923
/// restricted lifetimes that do not consume the iterator.
924
924
#[ experimental]
925
925
pub fn into_slice ( self ) -> & ' a mut [ T ] {
926
- make_slice ! ( T - > & ' a mut [ T ] : self . ptr, self . end)
926
+ make_slice ! ( T = > & ' a mut [ T ] : self . ptr, self . end)
927
927
}
928
928
}
929
929
0 commit comments