diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-14 16:33:33 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-14 16:33:33 -0800 |
| commit | 793e3b231c52e588c6783f5e0965eb0562f550b5 (patch) | |
| tree | edb9e00bfe1366f90f01d5c02dcde7fc4bb4f30c /src | |
| parent | cb8eabab3da839b5f11f0041753f1bc1a9e73549 (diff) | |
| download | rust-793e3b231c52e588c6783f5e0965eb0562f550b5.tar.gz rust-793e3b231c52e588c6783f5e0965eb0562f550b5.zip | |
rustc: Output a note about how to debug unexpected failures
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/driver/rustc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index a330d29550e..e7447cc446b 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -164,6 +164,12 @@ fn monitor(f: fn~(diagnostic::emitter)) { none, diagnostic::ice_msg("unexpected failure"), diagnostic::error); + let note = "The compiler hit an unexpected failure path. \ + This is a bug. Try running with \ + RUST_LOG=rustc=0,::rt::backtrace \ + to get further details and report the results \ + to github.com/mozilla/rust/issues"; + diagnostic::emit(none, note, diagnostic::note); } // Fail so the process returns a failure code fail; |
