Skip to content

Commit 98ed91d

Browse files
committed
feat(tests): Use --rustc to compile auxiliary crates during UI testing
1 parent a85b17e commit 98ed91d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,10 @@ fn run_test(path: &Path, aux_dir_path: &Path, root_dir: &Path, opts: &Opts, resu
433433
// Set defaults.
434434
let edition = edition.unwrap_or("2018");
435435

436+
// Run mutest-driver in rustc mode, disabling mutations.
436437
let mut cmd = Command::new("target/release/mutest-driver");
438+
cmd.arg("--rustc");
439+
437440
cmd.arg(&aux_path);
438441
cmd.args(["--crate-name", aux_crate_name]);
439442
cmd.arg(format!("--edition={edition}"));

0 commit comments

Comments
 (0)