about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-16 01:43:26 +0000
committerbors <bors@rust-lang.org>2018-05-16 01:43:26 +0000
commit3c31e17ddc8914365145683e6d56fa0229a01a8e (patch)
tree3a8e44a25eaff5e2a9df14d9aa83dd717e61ed18 /src/rustllvm/RustWrapper.cpp
parente44fc6c52d9674ed09958512e3bf09bc55bccecf (diff)
parentc3fd12ff4e88321904e4e28949945c23f399da57 (diff)
downloadrust-3c31e17ddc8914365145683e6d56fa0229a01a8e.tar.gz
rust-3c31e17ddc8914365145683e6d56fa0229a01a8e.zip
Auto merge of #50541 - QuietMisdreavus:rustdoc-errors, r=GuillaumeGomez
rustdoc: replace most (e)println! statements with structured warnings/errors

Turns out, the rustc diagnostic handler doesn't need a whole lot of setup that we weren't already doing. For errors that occur outside a "dealing with source code" context, we can just use the format/color config we were already parsing and make up a `Handler` that we can emit structured warnings/errors from. So i did that. This will make it way easier to test things with `rustdoc-ui` tests, since those require the JSON error output. (In fact, this PR is a yak shave for a different one where i was trying to do just that. `>_>`)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions