diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-17 11:24:56 +1000 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-26 14:35:34 +1000 | 
| commit | 72b721f48e3695f25a0935ad535e75e6777d829b (patch) | |
| tree | d9035f73872bfb90c94385098bb79f48c869b9aa /tests/run-coverage/unused_mod.coverage | |
| parent | 9334ec93541fd6963a3bfa2d2d09e3e33ac93131 (diff) | |
| download | rust-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/unused_mod.coverage')
| -rw-r--r-- | tests/run-coverage/unused_mod.coverage | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/tests/run-coverage/unused_mod.coverage b/tests/run-coverage/unused_mod.coverage index 558dfaa5cff..a8fa24ac6a7 100644 --- a/tests/run-coverage/unused_mod.coverage +++ b/tests/run-coverage/unused_mod.coverage @@ -1,4 +1,5 @@ $DIR/auxiliary/unused_mod_helper.rs: + LL| |#[allow(dead_code)] LL| 0|pub fn never_called_function() { LL| 0| println!("I am never called"); LL| 0|} | 
