Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Jan 22, 2026

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jan 22, 2026
)
}

private Method testresolveCallTarget(

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
result = this.getInferredNonSelfType(apos, path)
}

private Type testgetInferredType(string derefChainBorrow, AccessPosition apos, TypePath path) {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
isReturn = false
}

private Type testinferMethodCallTypePreCheck(AstNode n, boolean isReturn, TypePath path) {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
}

pragma[nomagic]
private Type inferNonMethodCallType1(AstNode n, boolean isReturn, TypePath path) {

Check warning

Code scanning / CodeQL

Dead code Warning

This code is never used, and it's not publicly exported.
filepath.matches("%/sqlx.rs") and
startline = [56 .. 60]
filepath.matches("%/closure.rs") and
startline = [10]

Check warning

Code scanning / CodeQL

Singleton set literal Warning

Singleton set literal can be replaced by its member.
) {
// not exists(getTypeArgument(a, target, tp, _)) and
exists(
Type constraint, TypePath pathToTypeParamInSub, TypePath pathToTp, TypePath pathToTp2,

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
// not exists(getTypeArgument(a, target, tp, _)) and
exists(
Type constraint, TypePath pathToTypeParamInSub, TypePath pathToTp, TypePath pathToTp2,
TypePath suffix, TypeParameter tp2, TypePath path3, TypePath path4, TypePath prefix

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
) {
// not exists(getTypeArgument(a, target, tp, _)) and
exists(
Type constraint, TypePath pathToTypeParamInSub, TypePath pathToT, TypeParameter tp2,

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
@hvitved hvitved force-pushed the rust/type-inference-closure-param-context-typed branch from b5bd829 to 29951e8 Compare January 22, 2026 15:29
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