@@ -155,18 +155,16 @@ where
155155}
156156
157157#[ doc( hidden) ]
158- #[ const_trait]
159158#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
160159// intermediate trait for specialization of slice's PartialOrd
161- trait SlicePartialOrd : Sized {
160+ const trait SlicePartialOrd : Sized {
162161 fn partial_compare ( left : & [ Self ] , right : & [ Self ] ) -> Option < Ordering > ;
163162}
164163
165164#[ doc( hidden) ]
166- #[ const_trait]
167165#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
168166// intermediate trait for specialization of slice's PartialOrd chaining methods
169- trait SliceChain : Sized {
167+ const trait SliceChain : Sized {
170168 fn chaining_lt ( left : & [ Self ] , right : & [ Self ] ) -> ControlFlow < bool > ;
171169 fn chaining_le ( left : & [ Self ] , right : & [ Self ] ) -> ControlFlow < bool > ;
172170 fn chaining_gt ( left : & [ Self ] , right : & [ Self ] ) -> ControlFlow < bool > ;
@@ -244,9 +242,8 @@ impl<A: [const] AlwaysApplicableOrd> const SlicePartialOrd for A {
244242}
245243
246244#[ rustc_specialization_trait ]
247- #[ const_trait ]
248245#[ rustc_const_unstable ( feature = "const_cmp" , issue = "143800" ) ]
249- trait AlwaysApplicableOrd : [ const ] SliceOrd + [ const ] Ord { }
246+ const trait AlwaysApplicableOrd : [ const ] SliceOrd + [ const ] Ord { }
250247
251248macro_rules! always_applicable_ord {
252249 ( $( [ $( $p: tt) * ] $t: ty, ) * ) => {
@@ -265,10 +262,9 @@ always_applicable_ord! {
265262}
266263
267264#[ doc ( hidden ) ]
268- #[ const_trait ]
269265#[ rustc_const_unstable ( feature = "const_cmp" , issue = "143800" ) ]
270266// intermediate trait for specialization of slice's Ord
271- trait SliceOrd : Sized {
267+ const trait SliceOrd : Sized {
272268 fn compare ( left : & [ Self ] , right : & [ Self ] ) -> Ordering ;
273269}
274270
@@ -292,8 +288,7 @@ impl<A: Ord> SliceOrd for A {
292288/// * For every `x` and `y` of this type, `Ord(x, y)` must return the same
293289/// value as `Ord::cmp(transmute::<_, u8>(x), transmute::<_, u8>(y))`.
294290 #[ rustc_specialization_trait]
295- #[ const_trait]
296- unsafe trait UnsignedBytewiseOrd : [ const ] Ord { }
291+ const unsafe trait UnsignedBytewiseOrd : [ const ] Ord { }
297292
298293#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
299294unsafe impl const UnsignedBytewiseOrd for bool { }
0 commit comments