@@ -26,33 +26,33 @@ macro_rules! array_impls {
26
26
( $( $N: expr) +) => {
27
27
$(
28
28
#[ stable]
29
- impl <T : Copy > Clone for [ T , .. $N] {
30
- fn clone( & self ) -> [ T , .. $N] {
29
+ impl <T : Copy > Clone for [ T ; $N] {
30
+ fn clone( & self ) -> [ T ; $N] {
31
31
* self
32
32
}
33
33
}
34
34
35
35
#[ unstable = "waiting for Show to stabilize" ]
36
- impl <T : fmt:: Show > fmt:: Show for [ T , .. $N] {
36
+ impl <T : fmt:: Show > fmt:: Show for [ T ; $N] {
37
37
fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
38
38
fmt:: Show :: fmt( & self [ ] , f)
39
39
}
40
40
}
41
41
42
42
#[ stable]
43
- impl <A , B > PartialEq <[ B , .. $N] > for [ A , .. $N] where A : PartialEq <B > {
43
+ impl <A , B > PartialEq <[ B ; $N] > for [ A ; $N] where A : PartialEq <B > {
44
44
#[ inline]
45
- fn eq( & self , other: & [ B , .. $N] ) -> bool {
45
+ fn eq( & self , other: & [ B ; $N] ) -> bool {
46
46
self [ ] == other[ ]
47
47
}
48
48
#[ inline]
49
- fn ne( & self , other: & [ B , .. $N] ) -> bool {
49
+ fn ne( & self , other: & [ B ; $N] ) -> bool {
50
50
self [ ] != other[ ]
51
51
}
52
52
}
53
53
54
54
#[ stable]
55
- impl <' a, A , B , Rhs > PartialEq <Rhs > for [ A , .. $N] where
55
+ impl <' a, A , B , Rhs > PartialEq <Rhs > for [ A ; $N] where
56
56
A : PartialEq <B >,
57
57
Rhs : Deref <[ B ] >,
58
58
{
@@ -63,47 +63,47 @@ macro_rules! array_impls {
63
63
}
64
64
65
65
#[ stable]
66
- impl <' a, A , B , Lhs > PartialEq <[ B , .. $N] > for Lhs where
66
+ impl <' a, A , B , Lhs > PartialEq <[ B ; $N] > for Lhs where
67
67
A : PartialEq <B >,
68
68
Lhs : Deref <[ A ] >
69
69
{
70
70
#[ inline( always) ]
71
- fn eq( & self , other: & [ B , .. $N] ) -> bool { PartialEq :: eq( & * * self , other[ ] ) }
71
+ fn eq( & self , other: & [ B ; $N] ) -> bool { PartialEq :: eq( & * * self , other[ ] ) }
72
72
#[ inline( always) ]
73
- fn ne( & self , other: & [ B , .. $N] ) -> bool { PartialEq :: ne( & * * self , other[ ] ) }
73
+ fn ne( & self , other: & [ B ; $N] ) -> bool { PartialEq :: ne( & * * self , other[ ] ) }
74
74
}
75
75
76
76
#[ stable]
77
- impl <T : Eq > Eq for [ T , .. $N] { }
77
+ impl <T : Eq > Eq for [ T ; $N] { }
78
78
79
79
#[ stable]
80
- impl <T : PartialOrd > PartialOrd for [ T , .. $N] {
80
+ impl <T : PartialOrd > PartialOrd for [ T ; $N] {
81
81
#[ inline]
82
- fn partial_cmp( & self , other: & [ T , .. $N] ) -> Option <Ordering > {
82
+ fn partial_cmp( & self , other: & [ T ; $N] ) -> Option <Ordering > {
83
83
PartialOrd :: partial_cmp( & self [ ] , & other[ ] )
84
84
}
85
85
#[ inline]
86
- fn lt( & self , other: & [ T , .. $N] ) -> bool {
86
+ fn lt( & self , other: & [ T ; $N] ) -> bool {
87
87
PartialOrd :: lt( & self [ ] , & other[ ] )
88
88
}
89
89
#[ inline]
90
- fn le( & self , other: & [ T , .. $N] ) -> bool {
90
+ fn le( & self , other: & [ T ; $N] ) -> bool {
91
91
PartialOrd :: le( & self [ ] , & other[ ] )
92
92
}
93
93
#[ inline]
94
- fn ge( & self , other: & [ T , .. $N] ) -> bool {
94
+ fn ge( & self , other: & [ T ; $N] ) -> bool {
95
95
PartialOrd :: ge( & self [ ] , & other[ ] )
96
96
}
97
97
#[ inline]
98
- fn gt( & self , other: & [ T , .. $N] ) -> bool {
98
+ fn gt( & self , other: & [ T ; $N] ) -> bool {
99
99
PartialOrd :: gt( & self [ ] , & other[ ] )
100
100
}
101
101
}
102
102
103
103
#[ stable]
104
- impl <T : Ord > Ord for [ T , .. $N] {
104
+ impl <T : Ord > Ord for [ T ; $N] {
105
105
#[ inline]
106
- fn cmp( & self , other: & [ T , .. $N] ) -> Ordering {
106
+ fn cmp( & self , other: & [ T ; $N] ) -> Ordering {
107
107
Ord :: cmp( & self [ ] , & other[ ] )
108
108
}
109
109
}
0 commit comments