We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--out-dir
-o
1 parent 76e7a08 commit 58ba77fCopy full SHA for 58ba77f
src/tools/compiletest/src/runtest.rs
@@ -2254,6 +2254,9 @@ impl<'test> TestCx<'test> {
2254
}
2255
2256
match output_file {
2257
+ // If the test's compile flags specify an output path with `-o`,
2258
+ // avoid a compiler warning about `--out-dir` being ignored.
2259
+ _ if self.props.compile_flags.iter().any(|flag| flag == "-o") => {}
2260
TargetLocation::ThisFile(path) => {
2261
rustc.arg("-o").arg(path);
2262
tests/ui/io-checks/non-ice-error-on-worker-io-fail.stderr
@@ -1,6 +1,4 @@
1
-warning: ignoring --out-dir flag due to -o flag
2
-
3
error: io error modifying ./does-not-exist/
4
5
-error: aborting due to 1 previous error; 1 warning emitted
+error: aborting due to 1 previous error
6
0 commit comments