]> git.lizzy.rs Git - rust.git/commit
Auto merge of #25125 - Stebalien:from_raw_os, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 7 May 2015 06:51:05 +0000 (06:51 +0000)
committerbors <bors@rust-lang.org>
Thu, 7 May 2015 06:51:05 +0000 (06:51 +0000)
commit95607544b6b59f88f838a9050a126149b4570049
treefb695f9dc91f46a5d46c0406fa75fd9c3eb633c2
parent055d926693d15e79be0aec289254eb4fc6e6b99e
parentf9f01efad27856516707245ff78af5dce18d8206
Auto merge of #25125 - Stebalien:from_raw_os, r=alexcrichton

So, I realize this is really late in the game so it's unlikely to be accepted but `FromRawFd`/`FromRawHandle` are necessary for fine grain control over file creation. For example, the current `OpenOptions` does not provide a way to avoid file creation races (there's no way to specify `O_EXCL` or the windows equivalent). Stabilizing these traits and their implementations will give 1.0 users fine-grain control over file creation without committing to any new complex APIs.  Additionally, `AsRawFd`/`AsRawHandle` are already stable so I feel that that stabilizing their inverses is a reasonably small change.

Disclaimer: I'm asking because my crate, tempfile, depends on this feature.