Skip to content

Commit 3d11e96

Browse files
committed
Fix order of diff when rustdoc tests fail
1 parent 068320b commit 3d11e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ impl<'test> TestCx<'test> {
24362436
})
24372437
};
24382438
let mut diff = Command::new("diff");
2439-
diff.args(&["-u", "-r"]).args(&[out_dir, &compare_dir]);
2439+
diff.args(&["-u", "-r"]).args(&[&compare_dir, out_dir]);
24402440

24412441
let output = if let Some(pager) = pager {
24422442
let diff_pid = diff.stdout(Stdio::piped()).spawn().expect("failed to run `diff`");

0 commit comments

Comments
 (0)