Skip to content

Commit

Permalink
fix rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jan 7, 2024
1 parent 7d499f3 commit 06d9c92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions src/run_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -378,7 +378,6 @@ pub(crate) fn run_compare_ra_to_rustc(
);
}


if !std::process::Command::new("cargo")
.arg("new")
.arg(file_stem)
Expand Down

0 comments on commit 06d9c92

Please sign in to comment.