Skip to content

Comments

Rust: Unify call resolution logic#21355

Draft
hvitved wants to merge 8 commits intogithub:mainfrom
hvitved:rust/type-inference-unify
Draft

Rust: Unify call resolution logic#21355
hvitved wants to merge 8 commits intogithub:mainfrom
hvitved:rust/type-inference-unify

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Feb 23, 2026

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Feb 23, 2026
*/
pragma[nomagic]
predicate hasNoCompatibleTargetMutBorrow(DerefChain derefChain) {
predicate hasNoCompatibleTargetMutBorrow(FunctionPosition pos, DerefChain derefChain) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter

The QLDoc has no documentation for pos, but the QLDoc mentions mut
*/
pragma[nomagic]
predicate hasNoCompatibleNonBlanketTargetMutBorrow(DerefChain derefChain) {
predicate hasNoCompatibleNonBlanketTargetMutBorrow(FunctionPosition pos, DerefChain derefChain) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter

The QLDoc has no documentation for pos, but the QLDoc mentions mut
pragma[nomagic]
Type getACandidateReceiverTypeAt(DerefChain derefChain, BorrowKind borrow, TypePath path) {
result = this.getACandidateReceiverTypeAtNoBorrow(derefChain, path) and
Type getACandidateReceiverTypeAt(

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter

The QLDoc has no documentation for pos, but the QLDoc mentions borrows
exists(
MethodCall mc, Method m, string name, int arity, TypePath strippedTypePath,
Type strippedType
MethodCall mc, FunctionPosition pos, Method m, string name, int arity,

Check warning

Code scanning / CodeQL

Omittable 'exists' variable

This exists variable can be omitted by using a don't-care expression [in this argument](1).
exists(
MethodCall mc, Method m, string name, int arity, TypePath strippedTypePath,
Type strippedType
MethodCall mc, FunctionPosition pos, Method m, string name, int arity,

Check warning

Code scanning / CodeQL

Omittable 'exists' variable

This exists variable can be omitted by using a don't-care expression [in this argument](1).
@hvitved hvitved force-pushed the rust/type-inference-unify branch from 46c92f3 to ed0c757 Compare February 23, 2026 18:17
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