Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Dec 8, 2025

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Dec 8, 2025
Comment on lines 265 to 277
/**
* Index assignments like `a[i] = rhs` are treated as `*a.index_mut(i) = rhs`,
* so they should in principle be handled by `referenceAssignment`.
*
* However, this would require support for [generalized reverse flow][1], which
* is not yet implemented, so instead we simulate reverse flow where it would
* have applied via the model for `<_ as core::ops::index::IndexMut>::index_mut`.
*
* The same is the case for compound assignments like `a[i] += rhs`, which are
* treated as `(*a.index_mut(i)).add_assign(rhs)`.
*
* [1]: https://github.com/github/codeql/pull/18109
*/

Check warning

Code scanning / CodeQL

Predicate QLDoc style Warning

The QLDoc for a predicate without a result should start with 'Holds'.
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch 3 times, most recently from baba061 to 5dda9be Compare December 15, 2025 09:17
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from 5dda9be to eb1db27 Compare December 16, 2025 11:10
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from eb1db27 to e269016 Compare December 16, 2025 13:44
pragma[nomagic]
Type getACandidateReceiverTypeAtSubstituteLookupTraits(
string derefChain, boolean borrow, TypePath path
Type getANonPseudoCandidateReceiverTypeAt(

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for borrow, or derefChain, or path, but the QLDoc mentions unknown
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from 8266451 to 14037e4 Compare December 16, 2025 14:38
if apos.isReturn() then isReturn = true else isReturn = false
)
}

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
.
or
derefChainBorrow = ";"
) and
path = path0

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
.
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