diff --git a/src/librustc_metadata/creader.rs b/src/librustc_metadata/creader.rs index 7b094a5900a05..a1514b06f08f6 100644 --- a/src/librustc_metadata/creader.rs +++ b/src/librustc_metadata/creader.rs @@ -267,6 +267,11 @@ impl<'a> CrateReader<'a> { .as_ref().map(|s|&**s) .unwrap_or("an old version of rustc") ); + + span_help!(self.sess, span, + "consider removing the compiled binaries and recompiling \ + with your current version of rustc"); + self.sess.abort_if_errors(); } }