]> git.lizzy.rs Git - rust.git/commitdiff
Further DSTify Index traits
authorAaron Turon <aturon@mozilla.com>
Mon, 17 Nov 2014 03:44:19 +0000 (19:44 -0800)
committerAaron Turon <aturon@mozilla.com>
Mon, 17 Nov 2014 19:26:48 +0000 (11:26 -0800)
src/libcore/ops.rs

index 3a2e178d2ea0a6ebbc81d2322554af5766978282..b4bf5351e597bad17d9ef1aea5960d23d82c51cc 100644 (file)
@@ -638,7 +638,7 @@ fn shr(&self, other: &uint) -> $t { (*self) >> (*other) }
  * ```
  */
 #[lang="index"]
-pub trait Index<Index, Sized? Result> for Sized? {
+pub trait Index<Sized? Index, Sized? Result> for Sized? {
     /// The method for the indexing (`Foo[Bar]`) operation
     fn index<'a>(&'a self, index: &Index) -> &'a Result;
 }
@@ -669,7 +669,7 @@ pub trait Index<Index, Sized? Result> for Sized? {
  * ```
  */
 #[lang="index_mut"]
-pub trait IndexMut<Index, Result> for Sized? {
+pub trait IndexMut<Sized? Index, Result> for Sized? {
     /// The method for the indexing (`Foo[Bar]`) operation
     fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result;
 }