diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-16 13:16:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-16 13:16:35 +0100 |
| commit | 2443eb46cf20d6663b055ad93b3984646696a894 (patch) | |
| tree | ef553ada9fdd92603a2da03c5e76000d5e66cad2 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 59b0058c0cb875e539052a91ff9ccf355f0427a8 (diff) | |
| parent | a2364dc85fb505487c272988b8c5073a3f6fef2a (diff) | |
| download | rust-2443eb46cf20d6663b055ad93b3984646696a894.tar.gz rust-2443eb46cf20d6663b055ad93b3984646696a894.zip | |
Rollup merge of #69122 - dtolnay:backtrace, r=cramertj
Backtrace Debug tweaks
- Change Debug representation of disabled and unsupported backtraces to use \<placeholder\> style, same as what we do for debug printing locked mutexes and mutably borrowed refcells;
```diff
- Error { msg: "...", backtrace: disabled backtrace }
+ Error { msg: "...", backtrace: <disabled> }
```
- Remove quotes around unresolved symbol names;
```diff
- Backtrace [{ fn: "<unknown>" }]
+ Backtrace [{ fn: <unknown> }]
```
- Add quotes around file paths;
```diff
- Backtrace [{ fn: "krate::main", file: /path/to/main.rs, line: 10 }]
+ Backtrace [{ fn: "krate::main", file: "/path/to/main.rs", line: 10 }]
```
- Add test.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
