From e48ca19bc594f880ea99e005dbbfdd3d2f70759e Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sat, 10 Aug 2013 07:13:47 -0700 Subject: std: fix the non-stage0 str::raw::slice_bytes which broke in a merge --- src/libstd/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') 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)); -- cgit 1.4.1-3-g733a5