about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-11-29 03:14:19 +0100
committerGitHub <noreply@github.com>2020-11-29 03:14:19 +0100
commitd5d60364786f88bcea9d940ec056bb020c12aa5b (patch)
treed0132325f1832bfb731d1d0a1cb32b00d619feac /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent851def274de533b563acbbf597e35def012b6063 (diff)
parentfa14f22fcb260ca0bc7dca395b456ea14bcde712 (diff)
downloadrust-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/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions