@@ -721,7 +721,7 @@ shr_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 }
721721#[ cfg( stage0) ]
722722#[ allow( missing_docs) ]
723723#[ lang="index" ]
724- pub trait Index < Sized ? Index , Sized ? Result > for Sized ? {
724+ pub trait Index < Sized ? Index , Sized ? Result > {
725725 /// The method for the indexing (`Foo[Bar]`) operation
726726 fn index < ' a > ( & ' a self , index : & Index ) -> & ' a Result ;
727727}
@@ -757,7 +757,7 @@ pub trait Index<Sized? Index, Sized? Result> for Sized? {
757757/// ```
758758#[ cfg( not( stage0) ) ] // NOTE(stage0) remove cfg after a snapshot
759759#[ lang="index" ]
760- pub trait Index <Sized ? Index > for Sized ? {
760+ pub trait Index < Sized ? Index > {
761761 type Sized ? Output ;
762762
763763 /// The method for the indexing (`Foo[Bar]`) operation
@@ -768,7 +768,7 @@ pub trait Index<Sized? Index> for Sized? {
768768#[ cfg( stage0) ]
769769#[ allow( missing_docs) ]
770770#[ lang="index_mut" ]
771- pub trait IndexMut < Sized ? Index , Sized ? Result > for Sized ? {
771+ pub trait IndexMut < Sized ? Index , Sized ? Result > {
772772 /// The method for the indexing (`Foo[Bar]`) operation
773773 fn index_mut < ' a > ( & ' a mut self , index : & Index ) -> & ' a mut Result ;
774774}
@@ -804,7 +804,7 @@ pub trait IndexMut<Sized? Index, Sized? Result> for Sized? {
804804/// ```
805805#[ cfg( not( stage0) ) ] // NOTE(stage0) remove cfg after a snapshot
806806#[ lang="index_mut" ]
807- pub trait IndexMut <Sized ? Index > for Sized ? {
807+ pub trait IndexMut < Sized ? Index > {
808808 type Sized ? Output ;
809809
810810 /// The method for the indexing (`Foo[Bar]`) operation
@@ -849,7 +849,7 @@ pub trait IndexMut<Sized? Index> for Sized? {
849849/// }
850850/// ```
851851#[ lang="slice" ]
852- pub trait Slice < Sized ? Idx , Sized ? Result > for Sized ? {
852+ pub trait Slice < Sized ? Idx , Sized ? Result > {
853853 /// The method for the slicing operation foo[]
854854 fn as_slice_ < ' a > ( & ' a self ) -> & ' a Result ;
855855 /// The method for the slicing operation foo[from..]
@@ -898,7 +898,7 @@ pub trait Slice<Sized? Idx, Sized? Result> for Sized? {
898898/// }
899899/// ```
900900#[ lang="slice_mut" ]
901- pub trait SliceMut < Sized ? Idx , Sized ? Result > for Sized ? {
901+ pub trait SliceMut < Sized ? Idx , Sized ? Result > {
902902 /// The method for the slicing operation foo[]
903903 fn as_mut_slice_ < ' a > ( & ' a mut self ) -> & ' a mut Result ;
904904 /// The method for the slicing operation foo[from..]
@@ -1025,7 +1025,7 @@ pub struct RangeTo<Idx> {
10251025/// }
10261026/// ```
10271027#[ lang="deref" ]
1028- pub trait Deref for Sized ? {
1028+ pub trait Deref {
10291029 type Sized ? Target ;
10301030
10311031 /// The method called to dereference a value
@@ -1082,7 +1082,7 @@ impl<'a, Sized? T> Deref for &'a mut T {
10821082/// }
10831083/// ```
10841084#[ lang="deref_mut" ]
1085- pub trait DerefMut for Sized ? : Deref {
1085+ pub trait DerefMut : Deref {
10861086 /// The method called to mutably dereference a value
10871087 fn deref_mut < ' a > ( & ' a mut self ) -> & ' a mut <Self as Deref >:: Target ;
10881088}
@@ -1093,14 +1093,14 @@ impl<'a, Sized? T> DerefMut for &'a mut T {
10931093
10941094/// A version of the call operator that takes an immutable receiver.
10951095#[ lang="fn" ]
1096- pub trait Fn < Args , Result > for Sized ? {
1096+ pub trait Fn < Args , Result > {
10971097 /// This is called when the call operator is used.
10981098 extern "rust-call" fn call ( & self , args : Args ) -> Result ;
10991099}
11001100
11011101/// A version of the call operator that takes a mutable receiver.
11021102#[ lang="fn_mut" ]
1103- pub trait FnMut < Args , Result > for Sized ? {
1103+ pub trait FnMut < Args , Result > {
11041104 /// This is called when the call operator is used.
11051105 extern "rust-call" fn call_mut ( & mut self , args : Args ) -> Result ;
11061106}
0 commit comments