@@ -112,7 +112,7 @@ pub trait Drop {
112
112
* ```
113
113
*/
114
114
#[ lang="add" ]
115
- pub trait Add < RHS , Result > {
115
+ pub trait Add < Sized ? RHS , Result > for Sized ? {
116
116
/// The method for the `+` operator
117
117
fn add ( & self , rhs : & RHS ) -> Result ;
118
118
}
@@ -153,7 +153,7 @@ add_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64)
153
153
* ```
154
154
*/
155
155
#[ lang="sub" ]
156
- pub trait Sub < RHS , Result > {
156
+ pub trait Sub < Sized ? RHS , Result > for Sized ? {
157
157
/// The method for the `-` operator
158
158
fn sub ( & self , rhs : & RHS ) -> Result ;
159
159
}
@@ -194,7 +194,7 @@ sub_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64)
194
194
* ```
195
195
*/
196
196
#[ lang="mul" ]
197
- pub trait Mul < RHS , Result > {
197
+ pub trait Mul < Sized ? RHS , Result > for Sized ? {
198
198
/// The method for the `*` operator
199
199
fn mul ( & self , rhs : & RHS ) -> Result ;
200
200
}
@@ -235,7 +235,7 @@ mul_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64)
235
235
* ```
236
236
*/
237
237
#[ lang="div" ]
238
- pub trait Div < RHS , Result > {
238
+ pub trait Div < Sized ? RHS , Result > for Sized ? {
239
239
/// The method for the `/` operator
240
240
fn div ( & self , rhs : & RHS ) -> Result ;
241
241
}
@@ -276,7 +276,7 @@ div_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64 f32 f64)
276
276
* ```
277
277
*/
278
278
#[ lang="rem" ]
279
- pub trait Rem < RHS , Result > {
279
+ pub trait Rem < Sized ? RHS , Result > for Sized ? {
280
280
/// The method for the `%` operator
281
281
fn rem ( & self , rhs : & RHS ) -> Result ;
282
282
}
@@ -331,7 +331,7 @@ rem_float_impl!(f64, fmod)
331
331
* ```
332
332
*/
333
333
#[ lang="neg" ]
334
- pub trait Neg < Result > {
334
+ pub trait Neg < Result > for Sized ? {
335
335
/// The method for the unary `-` operator
336
336
fn neg ( & self ) -> Result ;
337
337
}
@@ -388,7 +388,7 @@ neg_uint_impl!(u64, i64)
388
388
* ```
389
389
*/
390
390
#[ lang="not" ]
391
- pub trait Not < Result > {
391
+ pub trait Not < Result > for Sized ? {
392
392
/// The method for the unary `!` operator
393
393
fn not ( & self ) -> Result ;
394
394
}
@@ -430,7 +430,7 @@ not_impl!(bool uint u8 u16 u32 u64 int i8 i16 i32 i64)
430
430
* ```
431
431
*/
432
432
#[ lang="bitand" ]
433
- pub trait BitAnd < RHS , Result > {
433
+ pub trait BitAnd < Sized ? RHS , Result > for Sized ? {
434
434
/// The method for the `&` operator
435
435
fn bitand ( & self , rhs : & RHS ) -> Result ;
436
436
}
@@ -471,7 +471,7 @@ bitand_impl!(bool uint u8 u16 u32 u64 int i8 i16 i32 i64)
471
471
* ```
472
472
*/
473
473
#[ lang="bitor" ]
474
- pub trait BitOr < RHS , Result > {
474
+ pub trait BitOr < Sized ? RHS , Result > for Sized ? {
475
475
/// The method for the `|` operator
476
476
fn bitor ( & self , rhs : & RHS ) -> Result ;
477
477
}
@@ -512,7 +512,7 @@ bitor_impl!(bool uint u8 u16 u32 u64 int i8 i16 i32 i64)
512
512
* ```
513
513
*/
514
514
#[ lang="bitxor" ]
515
- pub trait BitXor < RHS , Result > {
515
+ pub trait BitXor < Sized ? RHS , Result > for Sized ? {
516
516
/// The method for the `^` operator
517
517
fn bitxor ( & self , rhs : & RHS ) -> Result ;
518
518
}
@@ -553,7 +553,7 @@ bitxor_impl!(bool uint u8 u16 u32 u64 int i8 i16 i32 i64)
553
553
* ```
554
554
*/
555
555
#[ lang="shl" ]
556
- pub trait Shl < RHS , Result > {
556
+ pub trait Shl < Sized ? RHS , Result > for Sized ? {
557
557
/// The method for the `<<` operator
558
558
fn shl ( & self , rhs : & RHS ) -> Result ;
559
559
}
@@ -596,7 +596,7 @@ shl_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64)
596
596
* ```
597
597
*/
598
598
#[ lang="shr" ]
599
- pub trait Shr < RHS , Result > {
599
+ pub trait Shr < Sized ? RHS , Result > for Sized ? {
600
600
/// The method for the `>>` operator
601
601
fn shr ( & self , rhs : & RHS ) -> Result ;
602
602
}
@@ -669,7 +669,7 @@ pub trait Index<Sized? Index, Sized? Result> for Sized? {
669
669
* ```
670
670
*/
671
671
#[ lang="index_mut" ]
672
- pub trait IndexMut < Sized ? Index , Result > for Sized ? {
672
+ pub trait IndexMut < Sized ? Index , Sized ? Result > for Sized ? {
673
673
/// The method for the indexing (`Foo[Bar]`) operation
674
674
fn index_mut < ' a > ( & ' a mut self , index : & Index ) -> & ' a mut Result ;
675
675
}
@@ -712,7 +712,7 @@ pub trait IndexMut<Sized? Index, Result> for Sized? {
712
712
* ```
713
713
*/
714
714
#[ lang="slice" ]
715
- pub trait Slice < Idx , Sized ? Result > for Sized ? {
715
+ pub trait Slice < Sized ? Idx , Sized ? Result > for Sized ? {
716
716
/// The method for the slicing operation foo[]
717
717
fn as_slice_ < ' a > ( & ' a self ) -> & ' a Result ;
718
718
/// The method for the slicing operation foo[from..]
@@ -761,7 +761,7 @@ pub trait Slice<Idx, Sized? Result> for Sized? {
761
761
* ```
762
762
*/
763
763
#[ lang="slice_mut" ]
764
- pub trait SliceMut < Idx , Sized ? Result > for Sized ? {
764
+ pub trait SliceMut < Sized ? Idx , Sized ? Result > for Sized ? {
765
765
/// The method for the slicing operation foo[]
766
766
fn as_mut_slice_ < ' a > ( & ' a mut self ) -> & ' a mut Result ;
767
767
/// The method for the slicing operation foo[from..]
@@ -800,7 +800,7 @@ pub trait SliceMut<Idx, Sized? Result> for Sized? {
800
800
* ```
801
801
*/
802
802
#[ lang="deref" ]
803
- pub trait Deref < Sized ? Result > {
803
+ pub trait Deref <Sized ? Result > for Sized ? {
804
804
/// The method called to dereference a value
805
805
fn deref < ' a > ( & ' a self ) -> & ' a Result ;
806
806
}
@@ -859,21 +859,21 @@ impl<'a, Sized? T> DerefMut<T> for &'a mut T {
859
859
860
860
/// A version of the call operator that takes an immutable receiver.
861
861
#[ lang="fn" ]
862
- pub trait Fn < Args , Result > {
862
+ pub trait Fn < Args , Result > for Sized ? {
863
863
/// This is called when the call operator is used.
864
864
extern "rust-call" fn call ( & self , args : Args ) -> Result ;
865
865
}
866
866
867
867
/// A version of the call operator that takes a mutable receiver.
868
868
#[ lang="fn_mut" ]
869
- pub trait FnMut < Args , Result > {
869
+ pub trait FnMut < Args , Result > for Sized ? {
870
870
/// This is called when the call operator is used.
871
871
extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Result ;
872
872
}
873
873
874
874
/// A version of the call operator that takes a by-value receiver.
875
875
#[ lang="fn_once" ]
876
- pub trait FnOnce < Args , Result > {
876
+ pub trait FnOnce < Args , Result > for Sized ? {
877
877
/// This is called when the call operator is used.
878
878
extern "rust-call" fn call_once ( self , args : Args ) -> Result ;
879
879
}
0 commit comments