about summary refs log tree commit diff
path: root/tests/run-coverage/issue-93054.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-08-17 11:24:56 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-08-26 14:35:34 +1000
commit72b721f48e3695f25a0935ad535e75e6777d829b (patch)
treed9035f73872bfb90c94385098bb79f48c869b9aa /tests/run-coverage/issue-93054.coverage
parent9334ec93541fd6963a3bfa2d2d09e3e33ac93131 (diff)
downloadrust-72b721f48e3695f25a0935ad535e75e6777d829b.tar.gz
rust-72b721f48e3695f25a0935ad535e75e6777d829b.zip
Resolve all warnings in `run-coverage` tests
When one of these tests fails, any compiler warnings will be printed to the
console, which makes it harder to track down the actual reason for failure.

(The outstanding warnings were found by temporarily adding `-Dwarnings` to the
compiler arguments for `RunCoverage` in `src/tools/compiletest/src/runtest.rs`.)
Diffstat (limited to 'tests/run-coverage/issue-93054.coverage')
-rw-r--r--tests/run-coverage/issue-93054.coverage2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-coverage/issue-93054.coverage b/tests/run-coverage/issue-93054.coverage
index 074e6b9835a..224c01d9a8b 100644
--- a/tests/run-coverage/issue-93054.coverage
+++ b/tests/run-coverage/issue-93054.coverage
@@ -1,3 +1,5 @@
+   LL|       |#![allow(dead_code, unreachable_code)]
+   LL|       |
    LL|       |// Regression test for #93054: Functions using uninhabited types often only have a single,
    LL|       |// unreachable basic block which doesn't get instrumented. This should not cause llvm-cov to fail.
    LL|       |// Since these kinds functions can't be invoked anyway, it's ok to not have coverage data for them.