We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be2f75f commit 3807440Copy full SHA for 3807440
src/bootstrap/src/core/builder/mod.rs
@@ -273,14 +273,15 @@ impl PathSet {
273
/// See `tests.rs` for examples.
274
fn intersection_removing_matches(&self, needles: &mut [CLIStepPath], module: Kind) -> PathSet {
275
let mut check = |p| {
276
+ let mut result = false;
277
for n in needles.iter_mut() {
278
let matched = Self::check(p, &n.path, module);
279
if matched {
280
n.will_be_executed = true;
- return true;
281
+ result = true;
282
}
283
- false
284
+ result
285
};
286
match self {
287
PathSet::Set(set) => PathSet::Set(set.iter().filter(|&p| check(p)).cloned().collect()),
0 commit comments