mozilla/rust — pull request #8308 by blake2-ppc (2013-08-05 15:59:05+00:00)
Title: std: Use correct lifetime parameter on str::raw::slice_bytes

`fn slice_bytes` is marked unsafe since it allows violating the valid
string encoding property; but the function did also allow extending the
lifetime of the slice by mistake, since it's returning `&str`.

Use the annotation `slice_bytes<'a>(&'a str, ...) -> &'a str` so
that all uses of `slice_bytes` are region checked correctly.