Skip to content

Commit e48ca19

Browse files
committed
std: fix the non-stage0 str::raw::slice_bytes which broke in a merge
1 parent 6fcf2ee commit e48ca19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ pub mod raw {
10511051
/// If end is greater than the length of the string.
10521052
#[cfg(not(stage0))]
10531053
#[inline]
1054-
pub unsafe fn slice_bytes(s: &str, begin: uint, end: uint) -> &str {
1054+
pub unsafe fn slice_bytes<'a>(s: &'a str, begin: uint, end: uint) -> &'a str {
10551055
do s.as_imm_buf |sbuf, n| {
10561056
assert!((begin <= end));
10571057
assert!((end <= n));

0 commit comments

Comments
 (0)