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.
This commit is contained in:
Noah Lev 2021-11-26 14:21:28 -08:00
parent 6d246f0c8d
commit 5fcae0a05d

View File

@ -1452,6 +1452,8 @@ fn document(&self, out_dir: &Path) -> ProcRes {
.arg(aux_dir)
.arg("-o")
.arg(out_dir)
.arg("--deny")
.arg("warnings")
.arg(&self.testpaths.file)
.args(&self.props.compile_flags);