The root of the bug was that my special Iter type that implements ExactSizedIterator implemented Iterator::size_hint incorrectly, and sometimes falsely would return 0. This meant that in the lowering code, Bump::alloc_slice_fill_iter would look at the length of the iterator and see 0, thus resulting in just &[].
Fixed the bugs brought up in #9 that caused
to become empty after lowering.
The root of the bug was that my special
Iter
type that implementsExactSizedIterator
implementedIterator::size_hint
incorrectly, and sometimes falsely would return 0. This meant that in the lowering code,Bump::alloc_slice_fill_iter
would look at the length of the iterator and see 0, thus resulting in just&[]
.