File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,12 @@ pub fn main() {
180180
181181 rustc_driver:: init_rustc_env_logger ( & early_dcx) ;
182182
183- let using_internal_features = rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |handler | {
183+ let using_internal_features = rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |dcx | {
184184 // FIXME: this macro calls unwrap internally but is called in a panicking context! It's not
185185 // as simple as moving the call from the hook to main, because `install_ice_hook` doesn't
186186 // accept a generic closure.
187187 let version_info = rustc_tools_util:: get_version_info!( ) ;
188- handler . note ( format ! ( "Clippy version: {version_info}" ) ) ;
188+ dcx . handle ( ) . note ( format ! ( "Clippy version: {version_info}" ) ) ;
189189 } ) ;
190190
191191 exit ( rustc_driver:: catch_with_exit_code ( move || {
You can’t perform that action at this time.
0 commit comments