Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions text/0640-debug-improvements.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,25 @@ HashMap {
"c": 3
}
```
* Struct and tuple struct output is printed with one field per line, indented
four spaces, and fields printed with the `#` modifier as well: e.g.
* Struct and struct variant output is printed with one field per line,
indented four spaces, and fields printed with the `#` modifier as well: e.g.
```rust
Foo {
field1: "hi",
field2: 10,
field3: false
}
```
* Tuple, tuple struct and enum variant output is printed in a single line,
without adding newlines after any field: e.g.
```rust
Foo(
"hi",
10,
false
)
("hi", 10, false)
```
```rust
Foo("hi", 10, false)
```
```rust
Some(1)
```

In all cases, pretty printed and non-pretty printed output should differ *only*
Expand Down