codeql
codeql copied to clipboard
Rust: Type inference for `for` loops and array expressions
trafficstars
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
Iteratortype and perhaps understandIntoIterator. - 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?
@hvitved do you think this is heading in the right direction?
Ready for review: there are gaps (and apparently a conflict with main), but we get some useful results and I'd like to push towards merging this ASAP.
:tada: