about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-14 16:33:33 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-14 16:33:33 -0800
commit793e3b231c52e588c6783f5e0965eb0562f550b5 (patch)
treeedb9e00bfe1366f90f01d5c02dcde7fc4bb4f30c
parentcb8eabab3da839b5f11f0041753f1bc1a9e73549 (diff)
downloadrust-793e3b231c52e588c6783f5e0965eb0562f550b5.tar.gz
rust-793e3b231c52e588c6783f5e0965eb0562f550b5.zip
rustc: Output a note about how to debug unexpected failures
-rw-r--r--src/comp/driver/rustc.rs6
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;