about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-09 15:43:27 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-09 16:12:33 -0700
commit2705051e2067e8f467b4cb9bc75e801a5cd4f0e7 (patch)
treea452a5249168b3070b6a9650e0d8a250a3df0dbf /src/rustllvm/ExecutionEngineWrapper.cpp
parente326aa197b1ee35b41c992eec171589197a7459d (diff)
downloadrust-2705051e2067e8f467b4cb9bc75e801a5cd4f0e7.tar.gz
rust-2705051e2067e8f467b4cb9bc75e801a5cd4f0e7.zip
std: Make FromRawFd::from_raw_fd an unsafe method
As pointed out in [RFC issue 1043][rfc] it is quite useful to have the standard
I/O types to provide the contract that they are the sole owner of the underlying
object they represent. This guarantee enables writing safe interfaces like the
`MemoryMap` API sketched out in that issue.

[rfc]: https://github.com/rust-lang/rfcs/issues/1043

As constructing objects from these raw handles may end up violating these
ownership gurantees, the functions for construction are now marked unsafe.

[breaking-change]
Closes rust-lang/rfcs#1043
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions