From: bors Date: Tue, 6 Aug 2013 12:26:01 +0000 (-0700) Subject: auto merge of #8308 : blake2-ppc/rust/str-slice-bytes, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=ca6385034c1ca269b0b797fa039d485f7f413959;p=rust.git auto merge of #8308 : blake2-ppc/rust/str-slice-bytes, r=alexcrichton `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. --- ca6385034c1ca269b0b797fa039d485f7f413959