From 41712680c0c63f3d228d3acbfa94aa263dedfadc Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Sat, 15 Nov 2025 07:28:36 +0200 Subject: [PATCH] runtest.rs: remove redundant check The check is already done in enclosing code --- src/tools/compiletest/src/runtest.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 6f9fdd52fc083..8527f7e8128f4 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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