From 793e3b231c52e588c6783f5e0965eb0562f550b5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 14 Jan 2012 16:33:33 -0800 Subject: rustc: Output a note about how to debug unexpected failures --- src/comp/driver/rustc.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/comp') 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; -- cgit 1.4.1-3-g733a5