about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-30 12:06:41 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-30 13:26:42 -0800
commit83972176293632d4e5fed6aef4b344f7aea7db55 (patch)
tree741e611afeffb8885367449fecd87acccf2d2ee0 /src/libcore/str
parenteb3a06093c2dac02cbc40994c8cd42fb5286f609 (diff)
parent03b9995be916aef561c125ba117507306e6c8fac (diff)
downloadrust-83972176293632d4e5fed6aef4b344f7aea7db55.tar.gz
rust-83972176293632d4e5fed6aef4b344f7aea7db55.zip
rollup merge of #21760: brson/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 93942d0b836..ee62cede191 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -486,15 +486,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;