diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-09-27 07:25:16 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-11-29 20:47:50 +0100 |
| commit | fc57c84abeee862fea08d823077f56ebab809ea7 (patch) | |
| tree | d27d12286c6e9515e39120b21298e5403651040f /src | |
| parent | 676f14baa0eb0291e946e6c134f832277c5236b8 (diff) | |
| download | rust-fc57c84abeee862fea08d823077f56ebab809ea7.tar.gz rust-fc57c84abeee862fea08d823077f56ebab809ea7.zip | |
Use Clippy version in ICE message
Diffstat (limited to 'src')
| -rw-r--r-- | src/driver.rs | 4 |
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 { |
