Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Feb 6, 2026

Replaces item tags with target tags when a call target can only be resolved with type inference, and replaces item tags with item_no_target tags when a call target can only be resolved with path resolution.

This makes it clear when type inference improves upon targets resolved in path resolution.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Feb 6, 2026
* for non-methods.
*/
pragma[nomagic]
Type getAssocFunctionTypeInclNonMethodSelfAt(

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for f, or i, or path, or pos, but the QLDoc mentions self
@hvitved hvitved force-pushed the rust/path-resolution/type-inference-expectations branch from 4bd25e7 to becd002 Compare February 10, 2026 08:41
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Feb 10, 2026
@hvitved hvitved marked this pull request as ready for review February 10, 2026 08:43
@hvitved hvitved requested a review from a team as a code owner February 10, 2026 08:43
Copilot AI review requested due to automatic review settings February 10, 2026 08:43
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

Updates the Rust path-resolution inline expectations tests to distinguish between symbols resolved via path resolution vs those that require type inference, making test expectations more explicit and interpretable.

Changes:

  • Introduce target expectations for call targets only resolvable with type inference.
  • Introduce item_no_target expectations for items only resolvable via path resolution (and not matching the inferred call target).
  • Update the path-resolution inline expectations test harness to recognize and emit these additional tags.

Reviewed changes

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

File Description
rust/ql/test/library-tests/path-resolution/my.rs Updates an inline expectation to use target=to_string to reflect type-inference-only call targeting.
rust/ql/test/library-tests/path-resolution/main.rs Re-labels several call-site expectations from item to target / item_no_target to reflect the new distinction.
rust/ql/lib/utils/test/PathResolutionInlineExpectationsTest.qll Extends the inline expectations harness to support target and item_no_target tags in addition to item.

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