cargo/tests
bors 578e2533b8 Auto merge of #5878 - ehuss:rustdoc-json, r=alexcrichton
Support JSON with rustdoc.

This allows `cargo doc --message-format=json` to actually work.

Note that this explicitly does not attempt to support it for doctests for
several reasons:
- `rustdoc --test --error-format=json` does not work for some reason.
- Since the lib is usually compiled before running rustdoc, warnings/errors
  will be emitted correctly by rustc.
- I'm unaware of any errors/warnings `rustdoc --test` is capable of producing
  assuming the code passed `rustc`.
- The compilation of the tests themselves do not support JSON.
- libtest does not output json, so it's utility is limited.
2018-08-10 03:14:33 +00:00
..
testsuite Auto merge of #5878 - ehuss:rustdoc-json, r=alexcrichton 2018-08-10 03:14:33 +00:00