You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the actual issue? Does the iterator produce the wrong results?
The debug output here is printing out internal implementation details and it is perfectly fine for the implementation to utilize them in whatever way it wishes to do so.
I tried this code:
output
I've expected the
finished
flag to be set when the iterator is exhausted, however it isn't.Meta
Tested on playground's stable
1.51.0
and nightly1.54.0-nightly (2021-05-05 bacf770f2983a52f31e3)
Likely cause
It seems this behaviour is caused by
allow_trailing_empty: false
:SplitInternal
only sets the finished flag ifallow_trailing_empty: true
or there is something to return.Should the flag be set unconditionally? Maybe like this?
The text was updated successfully, but these errors were encountered: