about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-05 15:01:07 +0000
committerbors <bors@rust-lang.org>2019-04-05 15:01:07 +0000
commit20dbf28624db446c0cf67be4cc71a85931947907 (patch)
tree2e103cda036b4b6c704ed4ca65c24e6dec9a902f /src/libstd/sys/unix/stack_overflow.rs
parent4d7defb26584b0d4e5cad372b2ab8888bfc22f3a (diff)
parentcfd31fb4df214ab84a917ba9afd148ed13d01a3a (diff)
downloadrust-20dbf28624db446c0cf67be4cc71a85931947907.tar.gz
rust-20dbf28624db446c0cf67be4cc71a85931947907.zip
Auto merge of #59076 - dtolnay:comma, r=alexcrichton
Include trailing comma in multiline Debug representation

This PR changes the behavior of [`Formatter::debug_struct`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.debug_struct), [`debug_tuple`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.debug_tuple), [`debug_list`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.debug_list), [`debug_set`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.debug_set), and [`debug_map`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.debug_map) to render trailing commas in `{:#?}` mode, which is the dominant style in modern Rust code.

#### Before:

```console
Language {
    name: "Rust",
    trailing_commas: false
}
```

#### After:

```console
Language {
    name: "Rust",
    trailing_commas: true,
}
```
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions