Skip to content

Rust: Handle more explicit type arguments in type inference #19847

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 8 commits into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Jun 23, 2025

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jun 23, 2025
@hvitved hvitved force-pushed the rust/type-inference-explicit-args branch 5 times, most recently from 9403c2d to 99bc945 Compare June 24, 2025 14:12
@hvitved hvitved force-pushed the rust/type-inference-explicit-args branch from 99bc945 to e0f16cf Compare June 30, 2025 18:12
@@ -529,23 +541,45 @@
}
}

private Locatable getRelevantLocatable() {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
abstract class Declaration extends AstNode {
abstract TypeParameter getTypeParameter(TypeParameterPosition ppos);

pragma[nomagic]
abstract Type getParameterType(DeclarationPosition dpos, TypePath path);

private Type dbggetDeclaredType(DeclarationPosition dpos, TypePath path) {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
or
result = CallExprImpl::getResolvedFunction(this)
}

private Declaration dbggetTarget() {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
@@ -1418,6 +1440,16 @@
typeConstraintBaseTypeMatch(a, target, path, t, tp)
}

private predicate debugtypeMatch(

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
@@ -1474,6 +1506,28 @@
)
)
}

private Type debuginferAccessType(

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
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