about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-12-06 15:37:10 +0900
committerGitHub <noreply@github.com>2019-12-06 15:37:10 +0900
commitf7c2631d4a161563edb3eb142a8b0b2d1429ab5c (patch)
treee724eea90db5c3941e5c2cc35fadcebb7180df16 /src/test/debuginfo/enum-thinlto.rs
parent662a225f1d251cd9f07e9c06a24094659a8c7242 (diff)
parent8be7223145c486f398863ddb55d115bf91651f59 (diff)
downloadrust-f7c2631d4a161563edb3eb142a8b0b2d1429ab5c.tar.gz
rust-f7c2631d4a161563edb3eb142a8b0b2d1429ab5c.zip
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
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions