diff --git a/compiler/can/src/scope.rs b/compiler/can/src/scope.rs index b51af4821c..e8d4576f69 100644 --- a/compiler/can/src/scope.rs +++ b/compiler/can/src/scope.rs @@ -454,7 +454,7 @@ impl ScopedIdentIds { Self { in_scope: BitVec::repeat(false, capacity), ident_ids, - regions: std::iter::repeat(Region::zero()).take(capacity).collect(), + regions: vec![Region::zero(); capacity], home, } }