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:
parent
6d246f0c8d
commit
5fcae0a05d
@ -1452,6 +1452,8 @@ fn document(&self, out_dir: &Path) -> ProcRes {
|
|||||||
.arg(aux_dir)
|
.arg(aux_dir)
|
||||||
.arg("-o")
|
.arg("-o")
|
||||||
.arg(out_dir)
|
.arg(out_dir)
|
||||||
|
.arg("--deny")
|
||||||
|
.arg("warnings")
|
||||||
.arg(&self.testpaths.file)
|
.arg(&self.testpaths.file)
|
||||||
.args(&self.props.compile_flags);
|
.args(&self.props.compile_flags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user