rust/src/libsyntax/parse
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
..
lexer don't use Result::ok just to be able to use unwrap/unwrap_or 2015-03-20 08:19:13 +01:00
attr.rs syntax: use lookahead to distinguish inner and outer attributes, instead of passing the latter around. 2015-03-13 11:36:30 +02:00
classify.rs Teach libsyntax about while let 2014-10-10 20:30:31 -04:00
common.rs Allow trailing commas in array patterns and attributes 2014-11-30 22:28:54 +13:00
mod.rs Require braces when a closure has an explicit return type. This is a 2015-03-18 20:07:27 -04:00
obsolete.rs Remove ProcType and ProcExp 2015-03-11 00:09:42 +01:00
parser.rs Add generic conversion traits 2015-03-23 15:01:45 -07:00
token.rs Auto merge of #23229 - aturon:stab-path, r=alexcrichton 2015-03-13 01:00:02 +00:00