runtest.rs: remove redundant check

The check is already done in enclosing code
This commit is contained in:
Tshepang Mbambo 2025-11-15 07:28:36 +02:00 committed by GitHub
parent 77761f314d
commit 41712680c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1635,8 +1635,7 @@ impl<'test> TestCx<'test> {
// executed and that don't specify their own optimization levels.
// Note: aux libs don't have a pass-mode, so they won't get optimized
// unless compile-flags are set in the aux file.
if self.config.optimize_tests
&& self.props.pass_mode(&self.config) == Some(PassMode::Run)
if self.props.pass_mode(&self.config) == Some(PassMode::Run)
&& !self
.props
.compile_flags