diff options
author | Noah Lev <camelidcamel@gmail.com> | 2021-11-26 14:21:28 -0800 |
---|---|---|
committer | Noah Lev <camelidcamel@gmail.com> | 2021-11-26 15:12:12 -0800 |
commit | 5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24 (patch) | |
tree | 86de08a8b2517f4c8f4960596e26e0221fc7320a | |
parent | 6d246f0c8d3063fea86abbb65a824362709541ba (diff) | |
download | rust-5fcae0a05d8f48e93a3b77bacddea6c6c7f9ea24.tar.gz |
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.
-rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
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); |