diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-05-07 10:49:39 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-05-07 17:25:04 -0700 |
| commit | dd59b1fb4c66089c10b7e189975aeb171085312e (patch) | |
| tree | 227900f9e8d3fa5132585438048eff8f0f7a832f /src/libstd/array.rs | |
| parent | 05d5fcaa5ba0c385e1dc97037c89fae437634fc3 (diff) | |
| download | rust-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/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions
