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:

- 00206e34c6/src/serialize.rs (L38)
- b1325898f4/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
..
benches num: add minimal benchmarks for full floating-point formatting 2017-04-28 15:24:09 -04:00
fmt fix confusion about parts required for float formatting 2017-05-09 12:58:50 -04:00
hash Removal pass for anonymous parameters 2017-05-02 05:55:20 +02:00
iter Rollup merge of #42329 - rap2hpoutre:patch-6, r=steveklabnik 2017-05-31 10:52:49 -06:00
num Auto merge of #42111 - ollie27:stab, r=Mark-Simulacrum 2017-05-20 15:42:43 +00:00
prelude Run rustfmt on libcore/prelude folder 2016-10-16 22:13:04 +05:30
slice Rollup merge of #42134 - scottmcm:rangeinclusive-struct, r=aturon 2017-05-24 19:50:01 -06:00
str Rollup merge of #42134 - scottmcm:rangeinclusive-struct, r=aturon 2017-05-24 19:50:01 -06:00
sync core: fix unused_macro warning 2017-05-18 23:33:08 -05:00
tests RangeFrom should have an infinite size_hint 2017-05-30 09:15:25 -07:00
any.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
array.rs std: Correct stability attributes for some implementations 2016-10-01 23:58:14 +01:00
borrow.rs Use #[prelude_import] in libcore. 2016-08-24 22:12:23 +00:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
cell.rs Correct some stability versions 2017-05-20 08:38:39 +01:00
char.rs Reduce str transmutes, add mut versions of methods. 2017-04-09 19:13:54 -04:00
char_private.rs Reduce a table used for Debug impl of str. 2017-04-05 09:13:19 -07:00
clone.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
cmp.rs Rollup merge of #42260 - stjepang:document-cmp-traits-agreement, r=alexcrichton 2017-05-27 20:54:04 -06:00
convert.rs Clarify docs on implementing Into. 2017-05-28 16:13:56 -04:00
default.rs Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
internal_macros.rs Fix a few impl stability attributes 2017-01-29 13:31:47 +00:00
intrinsics.rs Update stage0 bootstrap compiler 2017-04-29 12:11:14 -07:00
iter_private.rs Various fixes to wording consistency in the docs 2017-03-22 17:19:52 +01:00
lib.rs Remove some unused macros from the rust codebase 2017-05-12 09:37:28 +02:00
macros.rs Fix a few stability attributes 2017-04-18 23:33:38 +01:00
marker.rs fix broken link to nomicon in Unsize docs 2017-05-24 11:55:05 -05:00
mem.rs Rollup merge of #42252 - stjepang:clarify-alignof-docs, r=nikomatsakis 2017-05-31 10:52:46 -06:00
nonzero.rs refactor NonZero, Shared, and Unique APIs 2017-05-04 14:56:02 -04:00
ops.rs Give the try_trait feature its own tracking issue 2017-05-31 01:30:13 -07:00
option.rs Adding links to option::Option 2017-05-22 21:59:42 -04:00
panicking.rs Mark all extern functions as nounwind 2015-09-14 11:36:09 +02:00
ptr.rs Auto merge of #41920 - arielb1:inline-drop, r=eddyb 2017-05-13 13:59:19 +00:00
raw.rs Fix up various links 2017-03-20 10:10:16 -04:00
result.rs Give the try_trait feature its own tracking issue 2017-05-31 01:30:13 -07:00
tuple.rs Remove macro work-around. 2016-11-12 12:47:13 -07:00