Skip to content

Commit 5fcae0a

Browse files
committed
Deny warnings in rustdoc non-UI tests
These warnings were silently ignored since they did not appear in a `.stderr` file and did not fail the test. With this change, warnings in tests are denied, causing the tests to fail if they have warnings. I will fix all the warnings that are now test failures next.
1 parent 6d246f0 commit 5fcae0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,8 @@ impl<'test> TestCx<'test> {
14521452
.arg(aux_dir)
14531453
.arg("-o")
14541454
.arg(out_dir)
1455+
.arg("--deny")
1456+
.arg("warnings")
14551457
.arg(&self.testpaths.file)
14561458
.args(&self.props.compile_flags);
14571459

0 commit comments

Comments
 (0)