about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-10 07:13:47 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-08-10 07:33:22 -0700
commite48ca19bc594f880ea99e005dbbfdd3d2f70759e (patch)
tree31aa8f7c6ec11cda470525aa0ef766d46e67dc67 /src
parent6fcf2ee8e341c594fe9b9c148e13a4cb8ce6b4a3 (diff)
downloadrust-e48ca19bc594f880ea99e005dbbfdd3d2f70759e.tar.gz
rust-e48ca19bc594f880ea99e005dbbfdd3d2f70759e.zip
std: fix the non-stage0 str::raw::slice_bytes which broke in a merge
Diffstat (limited to 'src')
-rw-r--r--src/libstd/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index 820c344f739..26a00cca4c8 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -1051,7 +1051,7 @@ pub mod raw {
     /// If end is greater than the length of the string.
     #[cfg(not(stage0))]
     #[inline]
-    pub unsafe fn slice_bytes(s: &str, begin: uint, end: uint) -> &str {
+    pub unsafe fn slice_bytes<'a>(s: &'a str, begin: uint, end: uint) -> &'a str {
         do s.as_imm_buf |sbuf, n| {
              assert!((begin <= end));
              assert!((end <= n));