about summary refs log tree commit diff
path: root/src/libcore/ops.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-05 08:34:44 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-05 17:22:11 -0500
commita291a80fbe1222fd708b1e5612b8056cf9311cae (patch)
tree0c5ee99f3a6845a83d089910de69427c1c271288 /src/libcore/ops.rs
parentf11f3e7baeba3f5acf08cc6fbfee559c00e9f96e (diff)
downloadrust-a291a80fbe1222fd708b1e5612b8056cf9311cae.tar.gz
rust-a291a80fbe1222fd708b1e5612b8056cf9311cae.zip
register snapshot
Diffstat (limited to 'src/libcore/ops.rs')
-rw-r--r--src/libcore/ops.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs
index c9b71092f90..17e4c5f8215 100644
--- a/src/libcore/ops.rs
+++ b/src/libcore/ops.rs
@@ -717,15 +717,6 @@ macro_rules! shr_impl {
 
 shr_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 }
 
-// NOTE(stage0) remove trait after a snapshot
-#[cfg(stage0)]
-#[allow(missing_docs)]
-#[lang="index"]
-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;
-}
-
 /// The `Index` trait is used to specify the functionality of indexing operations
 /// like `arr[idx]` when used in an immutable context.
 ///
@@ -755,7 +746,6 @@ pub trait Index<Sized? Index, Sized? Result> for Sized? {
 ///     Foo[Foo];
 /// }
 /// ```
-#[cfg(not(stage0))]  // NOTE(stage0) remove cfg after a snapshot
 #[lang="index"]
 pub trait Index<Sized? Index> for Sized? {
     type Sized? Output;
@@ -764,15 +754,6 @@ pub trait Index<Sized? Index> for Sized? {
     fn index<'a>(&'a self, index: &Index) -> &'a Self::Output;
 }
 
-// NOTE(stage0) remove trait after a snapshot
-#[cfg(stage0)]
-#[allow(missing_docs)]
-#[lang="index_mut"]
-pub trait IndexMut<Sized? Index, Sized? Result> for Sized? {
-    /// The method for the indexing (`Foo[Bar]`) operation
-    fn index_mut<'a>(&'a mut self, index: &Index) -> &'a mut Result;
-}
-
 /// The `IndexMut` trait is used to specify the functionality of indexing
 /// operations like `arr[idx]`, when used in a mutable context.
 ///
@@ -802,7 +783,6 @@ pub trait IndexMut<Sized? Index, Sized? Result> for Sized? {
 ///     &mut Foo[Foo];
 /// }
 /// ```
-#[cfg(not(stage0))]  // NOTE(stage0) remove cfg after a snapshot
 #[lang="index_mut"]
 pub trait IndexMut<Sized? Index> for Sized? {
     type Sized? Output;