about summary refs log tree commit diff
path: root/src/libserialize
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-27 10:08:40 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-27 10:08:40 -0700
commit956c2eb257a4ac69371144e64be3e8c7cce8cb07 (patch)
tree10ff68950ad7982fdc0a77a82f979234fbd0f1a8 /src/libserialize
parent169231dc83b3078fd19d193ff422628f03e20a44 (diff)
parent36ef29abf7fa14dc9361d6b30ff7f8d18bfb4157 (diff)
downloadrust-956c2eb257a4ac69371144e64be3e8c7cce8cb07.tar.gz
rust-956c2eb257a4ac69371144e64be3e8c7cce8cb07.zip
rollup merge of #23738: alexcrichton/snapshots
Conflicts:
	src/libcollections/vec.rs
Diffstat (limited to 'src/libserialize')
-rw-r--r--src/libserialize/json.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs
index acd27161064..eef7cdd380f 100644
--- a/src/libserialize/json.rs
+++ b/src/libserialize/json.rs
@@ -1218,16 +1218,6 @@ impl Json {
     }
 }
 
-#[cfg(stage0)]
-impl<'a> Index<&'a str>  for Json {
-    type Output = Json;
-
-    fn index(&self, idx: & &str) -> &Json {
-        self.find(*idx).unwrap()
-    }
-}
-
-#[cfg(not(stage0))]
 impl<'a> Index<&'a str>  for Json {
     type Output = Json;
 
@@ -1236,19 +1226,6 @@ impl<'a> Index<&'a str>  for Json {
     }
 }
 
-#[cfg(stage0)]
-impl Index<uint> for Json {
-    type Output = Json;
-
-    fn index<'a>(&'a self, idx: &uint) -> &'a Json {
-        match self {
-            &Json::Array(ref v) => &v[*idx],
-            _ => panic!("can only index Json with uint if it is an array")
-        }
-    }
-}
-
-#[cfg(not(stage0))]
 impl Index<uint> for Json {
     type Output = Json;