Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 17, 2025

A pure renaming PR.

ToIndex makes more sense, since we start the recursion from 0.

`ToIndex` makes more sense, since we start the recursion from `0`.
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 17, 2025
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Nov 17, 2025
@hvitved hvitved marked this pull request as ready for review November 17, 2025 12:34
@hvitved hvitved requested review from a team as code owners November 17, 2025 12:34
Copilot AI review requested due to automatic review settings November 17, 2025 12:34
Copilot finished reviewing on behalf of hvitved November 17, 2025 12:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors predicate naming in the type inference system by renaming predicates from FromIndex to ToIndex to better reflect the recursion direction, which starts from index 0 and counts upward.

  • Renamed multiple recursive predicates across the type inference codebase
  • Updated all references to use the new ToIndex naming convention

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shared/typeinference/codeql/typeinference/internal/TypeInference.qll Renamed four recursive predicates from FromIndex to ToIndex variants to better reflect that recursion starts from 0
rust/ql/lib/codeql/rust/internal/typeinference/FunctionType.qll Renamed module and predicate from FromIndex to ToIndex for consistency with the shared library changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hvitved hvitved requested a review from paldepind November 18, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant