about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-09-27 07:25:16 +0200
committerPhilipp Hansch <dev@phansch.net>2019-11-29 20:47:50 +0100
commitfc57c84abeee862fea08d823077f56ebab809ea7 (patch)
treed27d12286c6e9515e39120b21298e5403651040f /src
parent676f14baa0eb0291e946e6c134f832277c5236b8 (diff)
downloadrust-fc57c84abeee862fea08d823077f56ebab809ea7.tar.gz
rust-fc57c84abeee862fea08d823077f56ebab809ea7.zip
Use Clippy version in ICE message
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs
index 76aaae3747b..50c821c182d 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -264,10 +264,12 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
         handler.abort_if_errors_and_should_abort();
     }
 
+    let version_info = rustc_tools_util::get_version_info!();
+
     let xs: Vec<Cow<'static, str>> = vec![
         "the compiler unexpectedly panicked. this is a bug.".into(),
         format!("we would appreciate a bug report: {}", bug_report_url).into(),
-        format!("rustc {}", option_env!("CFG_VERSION").unwrap_or("unknown_version")).into(),
+        format!("Clippy version: {}", version_info).into(),
     ];
 
     for note in &xs {