about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-16 13:16:35 +0100
committerGitHub <noreply@github.com>2020-03-16 13:16:35 +0100
commit2443eb46cf20d6663b055ad93b3984646696a894 (patch)
treeef553ada9fdd92603a2da03c5e76000d5e66cad2 /src/test/rustdoc-ui/coverage/json.rs
parent59b0058c0cb875e539052a91ff9ccf355f0427a8 (diff)
parenta2364dc85fb505487c272988b8c5073a3f6fef2a (diff)
downloadrust-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