about summary refs log tree commit diff
path: root/src/rt/rust_stack.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-06 05:26:01 -0700
committerbors <bors@rust-lang.org>2013-08-06 05:26:01 -0700
commitca6385034c1ca269b0b797fa039d485f7f413959 (patch)
treea4786719151b51b31ffb9505acbbc8aec4de7b6e /src/rt/rust_stack.cpp
parent8adcba4300e75388b0e9e3b21c10a23b2d9d9bd0 (diff)
parent476dfc24b311a837f931e678c4bdfbb99d29f4e4 (diff)
downloadrust-ca6385034c1ca269b0b797fa039d485f7f413959.tar.gz
rust-ca6385034c1ca269b0b797fa039d485f7f413959.zip
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.
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions