diff options
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index cfa4db69a6a..84bae6cd27e 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1956,11 +1956,8 @@ impl<'test> TestCx<'test> { rustc.arg("-Ctarget-feature=-crt-static"); } - match allow_unused { - AllowUnused::Yes => { - rustc.args(&["-A", "unused"]); - } - AllowUnused::No => {} + if let AllowUnused::Yes = allow_unused { + rustc.args(&["-A", "unused"]); } rustc.args(&self.props.compile_flags); |
