rust/src/libstd/sys
bors 71d7b29475 Auto merge of #40009 - clarcharr:box_to_buf, r=alexcrichton
Leftovers from #39594; From<Box> impls

These are a few more impls that follow the same reasoning as those from #39594.

What's included:
* `From<Box<str>> for String`
* `From<Box<[T]>> for Vec<T>`
* `From<Box<CStr>> for CString`
* `From<Box<OsStr>> for OsString`
* `From<Box<Path>> for PathBuf`
* `Into<Box<str>> for String`
* `Into<Box<[T]>> for Vec<T>`
* `Into<Box<CStr>> for CString`
* `Into<Box<OsStr>> for OsString`
* `Into<Box<Path>> for PathBuf`
* `<Box<CStr>>::into_c_string`
* `<Box<OsStr>>::into_os_string`
* `<Box<Path>>::into_path_buf`
* Tracking issue for latter three methods + three from previous PR.

Currently, the opposite direction isn't doable with `From` (only `Into`) because of the separation between `liballoc` and `libcollections`. I'm holding off on those for a later PR.
2017-03-15 04:24:10 +00:00
..
redox Auto merge of #40009 - clarcharr:box_to_buf, r=alexcrichton 2017-03-15 04:24:10 +00:00
unix Auto merge of #40009 - clarcharr:box_to_buf, r=alexcrichton 2017-03-15 04:24:10 +00:00
windows Auto merge of #40009 - clarcharr:box_to_buf, r=alexcrichton 2017-03-15 04:24:10 +00:00
mod.rs sys/mod doc update and mod import order adjust 2017-02-15 18:42:18 +08:00