Skip to content

Commit 4171268

Browse files
authored
runtest.rs: remove redundant check
The check is already done in enclosing code
1 parent 77761f3 commit 4171268

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,8 +1635,7 @@ impl<'test> TestCx<'test> {
16351635
// executed and that don't specify their own optimization levels.
16361636
// Note: aux libs don't have a pass-mode, so they won't get optimized
16371637
// unless compile-flags are set in the aux file.
1638-
if self.config.optimize_tests
1639-
&& self.props.pass_mode(&self.config) == Some(PassMode::Run)
1638+
if self.props.pass_mode(&self.config) == Some(PassMode::Run)
16401639
&& !self
16411640
.props
16421641
.compile_flags

0 commit comments

Comments
 (0)