rust/src/libcore
Yuki Okushi f7c2631d4a
Rollup merge of #67021 - elichai:2019-12-fmt, r=QuietMisdreavus
Fix docs for formatting delegations

If you use the example in the docs right now it breaks all the options Formatters have to offer.
i.e. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=214392ecc6eff73b4789c32568395f72 this should've padded the output with 4 zeros but didn't.

with the new example it does work: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=3bdfb29f395230c5129c5f56dcfcb2a9

The only thing i'm not quite sure about is what's the right way to do it in a loop (altough non of the docs talk about it people are doing it in the wild and there were a couple of attempts to include in libcore)
i.e. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4c4dca3c90ba36779ecd014f3899ab9c
2019-12-06 15:37:10 +09:00
..
array Update mod.rs 2019-11-27 10:27:30 +01:00
benches make ./x.py bench again 2019-11-23 07:06:27 +01:00
char Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
fmt Fix docs for formatting delegations 2019-12-04 15:20:47 +02:00
future Use associated_type_bounds where applicable - closes #61738 2019-08-08 22:39:15 +02:00
hash Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
iter Tweak wording of collect() on bad target type 2019-12-03 06:52:55 -08:00
macros Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
mem Auto merge of #65013 - petertodd:2019-maybeuninit-debug, r=sfackler 2019-11-28 03:41:29 +00:00
num Make dec2flt_table compatible with rustfmt 2019-11-29 20:17:09 -08:00
ops Rollup merge of #66651 - Areredify:on-unimplemented-scope, r=davidtwco 2019-12-03 11:07:01 +01:00
prelude Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ptr Rollup merge of #66379 - CreepySkeleton:patch-1, r=RalfJung 2019-11-29 22:57:28 +01:00
slice Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
str Fix documentation of pattern for str::matches() 2019-12-03 14:31:41 -08:00
sync Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett 2019-12-05 19:03:13 +01:00
task Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
tests Remove unneeded prelude imports in libcore tests 2019-11-29 23:16:46 -08:00
unicode Make libcore/unicode/tables.rs compatible with rustfmt 2019-11-29 20:17:11 -08:00
alloc.rs Clarify Layout::pad_to_align safety comment 2019-11-25 16:39:24 -05:00
any.rs Minor documentation fix 2019-11-29 20:47:16 +02:00
ascii.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
bool.rs Snap cfgs to new beta 2019-09-25 08:42:46 -04:00
borrow.rs be more direct about borrow requirenments 2019-04-03 11:41:24 +03:00
Cargo.toml Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs make things ugly 2019-11-13 09:31:08 +01:00
clone.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
cmp.rs Remove ord lang item 2019-12-01 16:09:07 -05:00
convert.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
default.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ffi.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
hint.rs Fix spelling typos 2019-11-26 22:19:54 -05:00
internal_macros.rs std: Remove internal definitions of cfg_if! macro 2019-06-10 10:58:44 -07:00
intrinsics.rs Check intrinsics for callability in const fns 2019-12-03 10:20:15 +01:00
iter_private.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs libcore: rnable 2 unstable const fn features 2019-12-05 15:01:30 +01:00
marker.rs Stabilize the never_type, written !. 2019-11-21 14:55:32 +01:00
option.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
panic.rs abort on BoxMeUp misuse 2019-11-26 09:24:39 +01:00
panicking.rs more panicking comments 2019-11-25 23:55:54 +01:00
pin.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
raw.rs Fix more tests after revert of rustdoc cfg(test) feature 2019-06-09 18:15:53 +01:00
result.rs Auto merge of #66322 - lzutao:consistent-result-map_or_else, r=dtolnay 2019-11-24 07:37:01 +00:00
time.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
tuple.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
unit.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00