Skip to content

Rust: Type inference for for loops and array expressions #19754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Jun 13, 2025

Adds type inference for for loops and array expressions. Currently for for loops this is limited to loops iterating through arrays.

@hvitved please advise.

  • I think for the more general cases we will need to decode the Iterator type and perhaps understand IntoIterator.
  • I'm not sure whether I should be attempting to model implicit dereferences, or perhaps a more general solution for that problem might be in the works?

@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant