about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-05-07 10:49:39 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-05-07 17:25:04 -0700
commitdd59b1fb4c66089c10b7e189975aeb171085312e (patch)
tree227900f9e8d3fa5132585438048eff8f0f7a832f /src/rustllvm/RustWrapper.cpp
parent05d5fcaa5ba0c385e1dc97037c89fae437634fc3 (diff)
downloadrust-dd59b1fb4c66089c10b7e189975aeb171085312e.tar.gz
rust-dd59b1fb4c66089c10b7e189975aeb171085312e.zip
std: Mark `mem::forget` as a safe function
This commit is an implementation of [RFC 1066][rfc] where the conclusion was
that leaking a value is a safe operation in Rust code, so updating the signature
of this function follows suit.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1066-safe-mem-forget.md

Closes #25186
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions