rustc: Output a note about how to debug unexpected failures
This commit is contained in:
parent
cb8eabab3d
commit
793e3b231c
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue