File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,8 @@ where
132
132
#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
133
133
impl < T : [ const ] Eq , const N : usize > const Eq for [ T ; N ] { }
134
134
135
- #[ const_trait]
136
135
#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
137
- trait SpecArrayEq < Other , const N : usize > : Sized {
136
+ const trait SpecArrayEq <Other , const N : usize >: Sized {
138
137
fn spec_eq ( a : & [ Self ; N ] , b : & [ Other ; N ] ) -> bool ;
139
138
fn spec_ne ( a : & [ Self ; N ] , b : & [ Other ; N ] ) -> bool ;
140
139
}
Original file line number Diff line number Diff line change @@ -403,7 +403,8 @@ where
403
403
404
404
/// Implements comparison of arrays [lexicographically](Ord#lexicographical-comparison).
405
405
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
406
- impl < T : PartialOrd , const N : usize > PartialOrd for [ T ; N ] {
406
+ #[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
407
+ impl < T : [ const ] PartialOrd , const N : usize > const PartialOrd for [ T ; N ] {
407
408
#[ inline]
408
409
fn partial_cmp ( & self , other : & [ T ; N ] ) -> Option < Ordering > {
409
410
PartialOrd :: partial_cmp ( & & self [ ..] , & & other[ ..] )
@@ -428,7 +429,8 @@ impl<T: PartialOrd, const N: usize> PartialOrd for [T; N] {
428
429
429
430
/// Implements comparison of arrays [lexicographically](Ord#lexicographical-comparison).
430
431
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
431
- impl < T : Ord , const N : usize > Ord for [ T ; N ] {
432
+ #[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
433
+ impl < T : [ const ] Ord , const N : usize > const Ord for [ T ; N ] {
432
434
#[ inline]
433
435
fn cmp ( & self , other : & [ T ; N ] ) -> Ordering {
434
436
Ord :: cmp ( & & self [ ..] , & & other[ ..] )
You can’t perform that action at this time.
0 commit comments