diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-06-30 10:28:04 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-06-30 10:28:04 +0200 |
| commit | bf9b39ae7df5cca418fd2afc25b30a5632b32c23 (patch) | |
| tree | faa195808c3128e84e4af60a7bb2aceaef068799 /src | |
| parent | f26cf11fe88e1b5bb51d0bd7515941fe51d5739d (diff) | |
| download | rust-bf9b39ae7df5cca418fd2afc25b30a5632b32c23.tar.gz rust-bf9b39ae7df5cca418fd2afc25b30a5632b32c23.zip | |
Fix dogfood
Diffstat (limited to 'src')
| -rw-r--r-- | src/driver.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs index d8e0b8ef39a..96d542cfe10 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -153,7 +153,8 @@ You can use tool lints to allow or deny lints from your code, eg.: const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/new"; -static ICE_HOOK: LazyLock<Box<dyn Fn(&panic::PanicInfo<'_>) + Sync + Send + 'static>> = LazyLock::new(|| { +type PanicCallback = dyn Fn(&panic::PanicInfo<'_>) + Sync + Send + 'static; +static ICE_HOOK: LazyLock<Box<PanicCallback>> = LazyLock::new(|| { let hook = panic::take_hook(); panic::set_hook(Box::new(|info| report_clippy_ice(info, BUG_REPORT_URL))); hook |
