rollup merge of #23875: aturon/revise-convert-2

* Marks `#[stable]` the contents of the `std::convert` module.

* Added methods `PathBuf::as_path`, `OsString::as_os_str`,
  `String::as_str`, `Vec::{as_slice, as_mut_slice}`.

* Deprecates `OsStr::from_str` in favor of a new, stable, and more
  general `OsStr::new`.

* Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes,
  to_cstring}` for ergonomic FFI usage.

[breaking-change]

r? @alexcrichton
This commit is contained in:
Alex Crichton 2015-03-31 11:26:10 -07:00
commit da04788efc
25 changed files with 132 additions and 70 deletions

View file

@ -11,7 +11,6 @@
// pretty-expanded FIXME #23616
#![feature(path)]
#![feature(convert)]
use std::env::*;
use std::path::PathBuf;

View file

@ -12,8 +12,6 @@
// pretty-expanded FIXME #23616
#![feature(convert)]
use std::default::Default;
use std::io;
use std::fs;