Skip to content

Rust: Improve type inference for closures#21206

Draft
hvitved wants to merge 2 commits intogithub:mainfrom
hvitved:rust/type-inference-closure-param-context-typed
Draft

Rust: Improve type inference for closures#21206
hvitved wants to merge 2 commits intogithub:mainfrom
hvitved:rust/type-inference-closure-param-context-typed

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
) {
// 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
@hvitved hvitved force-pushed the rust/type-inference-closure-param-context-typed branch 2 times, most recently from 5587466 to d40ec21 Compare March 10, 2026 15:14
@hvitved hvitved force-pushed the rust/type-inference-closure-param-context-typed branch from d40ec21 to c337f51 Compare March 10, 2026 19:16
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