Skip to content

Streamline iterator chaining when computing successors.#148054

Merged
bors merged 1 commit intorust-lang:masterfrom
nnethercote:chain
Oct 24, 2025
Merged

Streamline iterator chaining when computing successors.#148054
bors merged 1 commit intorust-lang:masterfrom
nnethercote:chain

Conversation

@nnethercote
Copy link
Copy Markdown
Contributor

There are numerous unnecessary into_iter calls.

Also add a comment explaining why the code looks like this, because it's non-obvious at first glance.

r? @saethlin

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants