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
@hvitved hvitved force-pushed the rust/type-inference-unify branch from 46c92f3 to ed0c757 Compare February 23, 2026 18:17
*/
pragma[nomagic]
predicate hasNoCompatibleTargetMutBorrow(DerefChain derefChain) {
predicate hasNoCompatibleTargetMutBorrow(FunctionPosition selfPos, DerefChain derefChain) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

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

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for selfPos, 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 Warning

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

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
.
exists(
MethodCall mc, Method m, string name, int arity, TypePath strippedTypePath,
Type strippedType
MethodCall mc, FunctionPosition pos, Function f, string name, int arity,

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
.
predicate hasTargetCand(ImplOrTraitItemNode i, Function f) {
f = this.resolveCallTargetCand(i)
f =
any(MethodCallCand mcc | mcc = MkMethodCallCand(this, _, _, _, _))

Check warning

Code scanning / CodeQL

Expression can be replaced with a cast Warning

The assignment to
mcc
in this any(..) can be replaced with an inline cast.
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