Files
rust/src/libcore
Corey Farwell dbc9d71b17 Rollup merge of #42275 - scottmcm:try-trait, r=nikomatsakis
Lower `?` to `Try` instead of `Carrier`

The easy parts of https://github.com/rust-lang/rfcs/pull/1859, whose FCP completed without further comments.

Just the trait and the lowering -- neither the error message improvements nor the insta-stable impl for Option nor exhaustive docs.

Based on a [github search](https://github.com/search?l=rust&p=1&q=question_mark_carrier&type=Code&utf8=%E2%9C%93), this will break the following:

- https://github.com/pfpacket/rust-9p/blob/00206e34c680198a0ac7c2f066cc2954187d4fac/src/serialize.rs#L38
- https://github.com/peterdelevoryas/bufparse/blob/b1325898f4fc2c67658049196c12da82548af350/src/result.rs#L50

The other results appear to be files from libcore or its tests.  I could also leave Carrier around after stage0 and `impl<T:Carrier> Try for T` if that would be better.

r? @nikomatsakis

Edit: Oh, and it might accidentally improve perf, based on https://github.com/rust-lang/rust/issues/37939#issuecomment-265803670, since `Try::into_result` for `Result` is an obvious no-op, unlike `Carrier::translate`.
2017-06-01 00:09:20 -04:00
..
2017-05-18 23:33:08 -05:00
2016-08-24 22:12:23 +00:00
2017-04-03 20:49:39 +02:00
2017-05-20 08:38:39 +01:00
2017-05-28 16:13:56 -04:00
2017-02-03 13:25:46 -08:00
2017-04-29 12:11:14 -07:00
2017-04-18 23:33:38 +01:00
2017-05-22 21:59:42 -04:00
2017-03-20 10:10:16 -04:00
2016-11-12 12:47:13 -07:00