about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-10-21 12:10:57 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-10-21 12:11:24 -0700
commit5afd760834b753c2bd2139e93e2420d7aa7d4790 (patch)
treebe742099cd45e4b2700db50cf9be4adafaf51ee1 /src/libsyntax
parentcf7b9eb51f10fc0b27164c27a30600f80927a1d3 (diff)
downloadrust-5afd760834b753c2bd2139e93e2420d7aa7d4790.tar.gz
rust-5afd760834b753c2bd2139e93e2420d7aa7d4790.zip
syntax: Add the Bug Report HOWTO URL to the ICE message
And also reference the bug report HOWTO in CONTRIBUTING.md
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs
index 4b5ab2fbb56..7f659a765ad 100644
--- a/src/libsyntax/diagnostic.rs
+++ b/src/libsyntax/diagnostic.rs
@@ -15,6 +15,9 @@ use std::io;
 use std::local_data;
 use extra::term;
 
+static BUG_REPORT_URL: &'static str =
+    "https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report";
+
 pub trait Emitter {
     fn emit(&self,
             cmsp: Option<(@codemap::CodeMap, Span)>,
@@ -143,7 +146,8 @@ impl handler for HandlerT {
 }
 
 pub fn ice_msg(msg: &str) -> ~str {
-    format!("internal compiler error: {}", msg)
+    format!("internal compiler error: {}\nThis message reflects a bug in the Rust compiler. \
+            \nWe would appreciate a bug report: {}", msg, BUG_REPORT_URL)
 }
 
 pub fn mk_span_handler(handler: @mut handler, cm: @codemap::CodeMap)