rust/library/core/src
Guillaume Gomez a6919ef889
Rollup merge of #77877 - scottmcm:fewer-try-trait-method-references, r=shepmaster
Use `try{}` in `try_fold` to decouple iterators in the library from `Try` details

I'd like to experiment with changing the `?`/`try` desugaring and correspondingly the `Try` trait (see #42327 for discussions about the suboptimalities of the current one) and this change would keep from needing any `cfg(bootstrap)` in iterator things.

This will be lowered to the same thing, so shouldn't cause any perf issues:
08e2d46166/compiler/rustc_ast_lowering/src/expr.rs (L428-L429)

But ~~I'll trigger~~ I've triggered [a perf run](https://perf.rust-lang.org/compare.html?start=d65c08e9cc164b7b44de53503fae859a4fafd976&end=2c067c5235e779cd75e9f0cdfe572c64f1a12b9b) just in case.

~~EDIT: changed to a draft because of the rustfmt-only syntax error.  zulip thread about it: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/New.20bootstrap.20rustfmt.20doesn't.20support.20syntax.20from.20sept.3F/near/213098097~~

EDIT: This now includes a rustfmt version bump to get through tidy.
2020-10-19 18:20:20 +02:00
..
alloc Deny broken intra-doc links in linkchecker 2020-10-15 20:22:16 -04:00
array add tracking issue 2020-09-23 13:48:21 +02:00
char Use matches! for core::char methods 2020-10-05 22:29:07 +08:00
convert Deny broken intra-doc links in linkchecker 2020-10-15 20:22:16 -04:00
fmt Don't discourage implementing core::fmt::Write 2020-10-08 10:49:44 -07:00
future Update library functions with stability attributes 2020-09-22 10:05:58 -07:00
hash Switch to intra-doc links in core::hash 2020-08-27 12:09:50 -07:00
iter Rollup merge of #77877 - scottmcm:fewer-try-trait-method-references, r=shepmaster 2020-10-19 18:20:20 +02:00
macros core::global_allocator docs link to std::alloc::GlobalAlloc 2020-09-29 14:39:44 +07:00
mem Rollup merge of #77228 - GuillaumeGomez:maybeuninit-examples, r=pickfire 2020-10-06 16:26:00 +09:00
num Implement as_ne_bytes for floats and integers 2020-09-20 22:20:06 +08:00
ops Auto merge of #77874 - camelid:range-docs-readability, r=scottmcm 2020-10-19 00:11:08 +00:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr stop relying on feature(untagged_unions) in stdlib 2020-10-16 11:33:35 +02:00
slice Auto merge of #76885 - dylni:move-slice-check-range-to-range-bounds, r=KodrAus 2020-10-18 18:50:43 +00:00
str fill in the tracking issue 2020-10-16 01:11:39 +03:00
sync Move use align_of in atomic.rs into the places where it is used. 2020-09-21 20:44:45 +02:00
task Bump to 1.48 bootstrap compiler 2020-10-07 19:51:36 -04:00
unicode mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs update tracking issue for const_type_id 2020-09-24 09:00:04 +10:00
ascii.rs Fixed some intra-docs links in library/core 2020-09-18 07:49:29 +08:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
borrow.rs Remove AsRef link as it is in the prelude 2020-08-10 20:29:20 +02:00
cell.rs Use intra-doc links for links to module-level docs 2020-10-12 19:22:47 -07:00
clone.rs Improve readability 2020-09-01 19:56:32 +02:00
cmp.rs Use Self more in core/src/cmp.rs 2020-09-22 23:36:08 +02:00
default.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ffi.rs Fix intra-docs link 2020-10-10 01:14:39 +01:00
hint.rs hint doc use intra-doc links 2020-10-05 23:29:43 +08:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Fix intra doc link for needs_drop 2020-10-15 08:55:37 -07:00
lazy.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
lib.rs Rollup merge of #77877 - scottmcm:fewer-try-trait-method-references, r=shepmaster 2020-10-19 18:20:20 +02:00
marker.rs Use Self more in core in doc when possible 2020-09-23 00:16:16 +02:00
option.rs Deny broken intra-doc links in linkchecker 2020-10-15 20:22:16 -04:00
panic.rs Auto merge of #76157 - ArekPiekarz:const_caller_location_tracking_issue, r=joshtriplett 2020-09-06 20:27:51 +00:00
panicking.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pin.rs Make some methods of Pin<&mut T> unstable const 2020-09-18 19:23:50 +02:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
result.rs Use intra-doc links for links to module-level docs 2020-10-12 19:22:47 -07:00
time.rs Make all methods of Duration const 2020-09-12 15:14:58 +02:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00