diff --git a/src/main.rs b/src/main.rs index 339425c..c0f90e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -974,7 +974,13 @@ impl ICE { Executable::Clippy => run_clippy(exec_path, file, global_tempdir_path), Executable::ClippyFix => run_clippy_fix(exec_path, file, global_tempdir_path), Executable::RustFix => run_rustfix(exec_path, file, global_tempdir_path), - Executable::Rustc => run_rustc(exec_path, file, global_tempdir_path), + Executable::Rustc => run_rustc( + exec_path, + file, + incremental, + &compiler_flags, + global_tempdir_path, + ), Executable::Rustdoc => run_rustdoc(exec_path, file, global_tempdir_path), Executable::RustAnalyzer => { run_compare_ra_to_rustc(exec_path, file, global_tempdir_path) diff --git a/src/run_commands.rs b/src/run_commands.rs index 2277f7e..c141bce 100644 --- a/src/run_commands.rs +++ b/src/run_commands.rs @@ -367,7 +367,7 @@ pub(crate) fn run_compare_ra_to_rustc( //dbg!(&rustc_output); // SPEEDUP: if rustc already throws errors, abort: - if ! rustc_output.status.success() { + if !rustc_output.status.success() { return CommandOutput::new( std::process::Command::new("true") .output() @@ -378,7 +378,6 @@ pub(crate) fn run_compare_ra_to_rustc( ); } - if !std::process::Command::new("cargo") .arg("new") .arg(file_stem)