From 5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Fri, 26 Nov 2021 14:21:28 -0800 Subject: [PATCH] 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. --- src/tools/compiletest/src/runtest.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 3c85b9076dd..727eecbb732 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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);