about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-01-29 14:14:49 -0800
committerBrian Anderson <banderson@mozilla.com>2015-01-29 15:02:00 -0800
commit03b9995be916aef561c125ba117507306e6c8fac (patch)
tree9cbe854ebc0bb6ee8278fed6d331d6bab2efb084 /src/libcore/str
parent265a23320dbeaeca45b889cfea684d71dec1b8e6 (diff)
downloadrust-03b9995be916aef561c125ba117507306e6c8fac.tar.gz
rust-03b9995be916aef561c125ba117507306e6c8fac.zip
Register snaps
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 22851965644..6272186026a 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -460,15 +460,6 @@ delegate_iter!{exact u8 : Bytes<'a>}
 #[derive(Copy, Clone)]
 struct BytesDeref;
 
-#[cfg(stage0)]
-impl<'a> Fn(&'a u8) -> u8 for BytesDeref {
-    #[inline]
-    extern "rust-call" fn call(&self, (ptr,): (&'a u8,)) -> u8 {
-        *ptr
-    }
-}
-
-#[cfg(not(stage0))]
 impl<'a> Fn<(&'a u8,)> for BytesDeref {
     type Output = u8;