]> git.lizzy.rs Git - rust.git/commit
rustc: make stack traces print for .span_bug/.bug.
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 13 Mar 2014 23:00:07 +0000 (10:00 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 13 Mar 2014 23:17:14 +0000 (10:17 +1100)
commitedb6b025c48205c5084a648c7ef7859adbf5c705
treef827061bca2f0c341a72f61d826d25bd1e0c8589
parent6ff3c9995e63b63c16d13739a0fc2d321f95410e
rustc: make stack traces print for .span_bug/.bug.

Previously a call to either of those to diagnostic printers would defer
to the `fatal` equivalents, which explicitly silence the stderr
printing, including a stack trace from `RUST_LOG=std::rt::backtrace`.

This splits the bug printers out to their own diagnostic type so that
things work properly.

Also, this removes the `Ok(...)` that was being printed around the
subtask's stderr output.
src/librustc/lib.rs
src/libsyntax/diagnostic.rs