rust/src/librustdoc
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
..
clean Add generic conversion traits 2015-03-23 15:01:45 -07:00
html Add generic conversion traits 2015-03-23 15:01:45 -07:00
core.rs Separate most of rustc::lint::builtin into a separate crate. 2015-02-28 15:33:59 +11:00
doctree.rs rustdoc: Fix ICE with cross-crate default impls 2015-03-12 21:01:49 -07:00
externalfiles.rs Add generic conversion traits 2015-03-23 15:01:45 -07:00
flock.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
fold.rs syntax: gather common fields of impl & trait items into their respective types. 2015-03-11 23:39:16 +02:00
lib.rs Add generic conversion traits 2015-03-23 15:01:45 -07:00
markdown.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
passes.rs rustdoc: Fix ICE with cross-crate default impls 2015-03-12 21:01:49 -07:00
plugins.rs std: Remove old_io/old_path from the prelude 2015-03-20 20:07:19 -07:00
stability_summary.rs syntax: gather common fields of impl & trait items into their respective types. 2015-03-11 23:39:16 +02:00
test.rs Add generic conversion traits 2015-03-23 15:01:45 -07:00
visit_ast.rs rustdoc: Fix ICE with cross-crate default impls 2015-03-12 21:01:49 -07:00