Files
rust/src/libcore
Jimmy Cuadra 2561dcddf9 Rename TryFrom's associated type and implement str::parse using TryFrom.
Per discussion on the tracking issue, naming `TryFrom`'s associated type
`Error` is generally more consistent with similar traits in the Rust
ecosystem, and what people seem to assume it should be called. It
also helps disambiguate from `Result::Err`, the most common "Err".

See
https://github.com/rust-lang/rust/issues/33417#issuecomment-269108968.

TryFrom<&str> and FromStr are equivalent, so have the latter provide the
former to ensure that. Using TryFrom in the implementation of
`str::parse` means types that implement either trait can use it.
When we're ready to stabilize `TryFrom`, we should update `FromStr` to
suggest implementing `TryFrom<&str>` instead for new code.

See
https://github.com/rust-lang/rust/issues/33417#issuecomment-277175994
and
https://github.com/rust-lang/rust/issues/33417#issuecomment-277253827.

Refs #33417.
2017-03-15 07:51:54 -07:00
..
2017-03-10 15:00:19 +01:00
2017-02-03 13:25:46 -08:00
2017-03-13 00:28:48 +01:00
2017-02-06 10:39:14 -08:00
2016-08-24 22:12:23 +00:00
2017-02-03 13:25:46 -08:00
2017-02-03 13:25:46 -08:00
2017-02-03 13:25:46 -08:00
2017-02-21 14:02:12 -05:00
2017-02-03 13:25:46 -08:00
2017-03-07 19:13:17 +01:00
2017-02-21 14:02:12 -05:00
2017-02-21 14:02:12 -05:00
2017-02-03 13:25:46 -08:00
2017-03-07 23:39:49 +01:00
2017-02-20 09:09:12 -05:00
2016-11-12 12:47:13 -07:00