diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-11-29 03:14:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-29 03:14:19 +0100 |
| commit | d5d60364786f88bcea9d940ec056bb020c12aa5b (patch) | |
| tree | d0132325f1832bfb731d1d0a1cb32b00d619feac /src/test/codegen/src-hash-algorithm | |
| parent | 851def274de533b563acbbf597e35def012b6063 (diff) | |
| parent | fa14f22fcb260ca0bc7dca395b456ea14bcde712 (diff) | |
| download | rust-d5d60364786f88bcea9d940ec056bb020c12aa5b.tar.gz rust-d5d60364786f88bcea9d940ec056bb020c12aa5b.zip | |
Rollup merge of #79443 - GuillaumeGomez:improve-rustdoc-js-error-output, r=jyn514
Improve rustdoc JS tests error output
It's pretty common when starting to add new tests for rustdoc-js to have issues to understand the errors. With this, it should make things a bit simpler. So now, in case of an error, it displays:
```
---- [js-doc-test] rustdoc-js/basic.rs stdout ----
error: rustdoc-js test failed!
failed to decode compiler output as json: line: {
output: Checking "basic" ... FAILED
==> Result not found in 'others': '{"path":"basic","name":"Fo"}'
Diff of first error:
{
"path": "basic",
- "name": "Fo",
+ "name": "Foo",
}
thread '[js-doc-test] rustdoc-js/basic.rs' panicked at 'explicit panic', src/tools/compiletest/src/json.rs:126:21
```
I think it was ``@camelid`` who asked about it a few days ago?
r? ``@jyn514``
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
