rust/src/test
Aaron Turon 8389253df0 Add generic conversion traits
This commit:

* Introduces `std::convert`, providing an implementation of
RFC 529.

* Deprecates the `AsPath`, `AsOsStr`, and `IntoBytes` traits, all
in favor of the corresponding generic conversion traits.

  Consequently, various IO APIs now take `AsRef<Path>` rather than
`AsPath`, and so on. Since the types provided by `std` implement both
traits, this should cause relatively little breakage.

* Deprecates many `from_foo` constructors in favor of `from`.

* Changes `PathBuf::new` to take no argument (creating an empty buffer,
  as per convention). The previous behavior is now available as
  `PathBuf::from`.

* De-stabilizes `IntoCow`. It's not clear whether we need this separate trait.

Closes #22751
Closes #14433

[breaking-change]
2015-03-23 15:01:45 -07:00
..
auxiliary std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
bench std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
codegen
compile-fail std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
compile-fail-fulldeps
debuginfo
parse-fail
pretty
run-fail Auto merge of #23267 - alexcrichton:issue-20012, r=aturon 2015-03-20 20:19:42 +00:00
run-make std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
run-pass Add generic conversion traits 2015-03-23 15:01:45 -07:00
run-pass-fulldeps
run-pass-valgrind