Skip to content

Rust: Add type inference test cases resembling missing call targets in SQLx. #20160

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Aug 4, 2025

Add type inference test cases resembling the missing call targets in SQLx. I believe this is a common pattern.

@paldepind is this one of the issues on your radar and/or can you help me come up with what a fix might look like?

@geoffw0 geoffw0 requested a review from a team as a code owner August 4, 2025 10:03
@Copilot Copilot AI review requested due to automatic review settings August 4, 2025 10:03
@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Aug 4, 2025
Copy link
Contributor

@Copilot 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 adds test cases for type inference in Rust, specifically focusing on missing call targets for method calls on types that implement traits through blanket implementations. The test cases model patterns similar to those found in SQLx where methods are called on connection types that implement executor traits.

  • Adds a new test module exec that demonstrates trait method calls through blanket implementations
  • Updates the expected test output to include type inference results for the new test cases
  • Includes the new test module in the main function call chain

Reviewed Changes

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

File Description
main.rs Adds new exec module with trait implementation test cases and includes it in main function
type-inference.expected Updates expected test output with type inference results for the new test cases

@paldepind
Copy link
Contributor

@paldepind is this one of the issues on your radar and/or can you help me come up with what a fix might look like?

Yes! This should be covered by #20133.

@geoffw0 geoffw0 merged commit 8b5603c into github:main Aug 4, 2025
17 checks passed
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.

2 participants