about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-11-26 14:21:28 -0800
committerNoah Lev <camelidcamel@gmail.com>2021-11-26 15:12:12 -0800
commit5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24 (patch)
tree86de08a8b2517f4c8f4960596e26e0221fc7320a /src
parent6d246f0c8d3063fea86abbb65a824362709541ba (diff)
downloadrust-5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24.tar.gz
rust-5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 2 insertions, 0 deletions
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 @@ impl<'test> TestCx<'test> {
             .arg(aux_dir)
             .arg("-o")
             .arg(out_dir)
+            .arg("--deny")
+            .arg("warnings")
             .arg(&self.testpaths.file)
             .args(&self.props.compile_flags);