Skip to content

Commit 1da4eb3

Browse files
committed
Remove the need to manually call set_using_internal_features
1 parent de12d28 commit 1da4eb3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/driver.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}))

0 commit comments

Comments
 (0)