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
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.I-slowIssue: Problems and improvements with respect to performance of generated code.
By the way, I think the only way to implement this safely is for
vectors, because they can use a while loop. For other code that uses a
generic each() method, I believe unsafe code is needed to manage the
moves. I have not come up with a simple way for the type system to prove
the absence of troublesome recursion (once fns are complex enough to
prove safe---and they don't address this problem). But I think the
interface should still be correct, as @brson says, even if it requires
an unsafe impl for the generic case.
…, r=graydon
Closes#5311 and #4490.
This doesn't change `vec.foldl` because that's still part of `old_iter`, although I could change that as well if necessary.
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.I-slowIssue: Problems and improvements with respect to performance of generated code.
Right now they force each iteration to make copies.
The text was updated successfully, but these errors were encountered: