This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ pub fn main() {
186186
187187 rustc_driver:: init_rustc_env_logger ( & early_dcx) ;
188188
189- let using_internal_features = rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |dcx| {
189+ rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |dcx| {
190190 // FIXME: this macro calls unwrap internally but is called in a panicking context! It's not
191191 // as simple as moving the call from the hook to main, because `install_ice_hook` doesn't
192192 // accept a generic closure.
@@ -295,13 +295,9 @@ pub fn main() {
295295 let clippy_enabled = !cap_lints_allow && relevant_package && !info_query;
296296 if clippy_enabled {
297297 args. extend ( clippy_args) ;
298- rustc_driver:: RunCompiler :: new ( & args, & mut ClippyCallbacks { clippy_args_var } )
299- . set_using_internal_features ( using_internal_features)
300- . run ( ) ;
298+ rustc_driver:: RunCompiler :: new ( & args, & mut ClippyCallbacks { clippy_args_var } ) . run ( ) ;
301299 } else {
302- rustc_driver:: RunCompiler :: new ( & args, & mut RustcCallbacks { clippy_args_var } )
303- . set_using_internal_features ( using_internal_features)
304- . run ( ) ;
300+ rustc_driver:: RunCompiler :: new ( & args, & mut RustcCallbacks { clippy_args_var } ) . run ( ) ;
305301 }
306302 Ok ( ( ) )
307303 } ) )
You can’t perform that action at this time.
0 commit comments