File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ pub fn main() {
186
186
187
187
rustc_driver:: init_rustc_env_logger ( & early_dcx) ;
188
188
189
- let using_internal_features = rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |dcx| {
189
+ rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |dcx| {
190
190
// FIXME: this macro calls unwrap internally but is called in a panicking context! It's not
191
191
// as simple as moving the call from the hook to main, because `install_ice_hook` doesn't
192
192
// accept a generic closure.
@@ -295,13 +295,9 @@ pub fn main() {
295
295
let clippy_enabled = !cap_lints_allow && relevant_package && !info_query;
296
296
if clippy_enabled {
297
297
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 ( ) ;
301
299
} 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 ( ) ;
305
301
}
306
302
Ok ( ( ) )
307
303
} ) )
You can’t perform that action at this time.
0 commit comments