about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-08-05 17:52:03 +0200
committerblake2-ppc <blake2-ppc>2013-08-05 17:55:06 +0200
commit476dfc24b311a837f931e678c4bdfbb99d29f4e4 (patch)
treec0ec521e48d9b5cb370ca5c3a13bf92e28bee2b0 /src/rt/sync/timer.cpp
parentdbaca98d78f1458485b36b2565593d7d13e1c90f (diff)
downloadrust-476dfc24b311a837f931e678c4bdfbb99d29f4e4.tar.gz
rust-476dfc24b311a837f931e678c4bdfbb99d29f4e4.zip
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.
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions