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 2 times, most recently 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
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from 14037e4 to 0c7b1d0 Compare December 17, 2025 10:42
)
)
}

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-deref-trait branch 2 times, most recently from 7880183 to be3a16a Compare December 17, 2025 12:40
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch 2 times, most recently from cdf5462 to 333bf24 Compare December 17, 2025 14:39
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from 333bf24 to ad91b3b Compare December 17, 2025 15:45
@hvitved hvitved force-pushed the rust/type-inference-deref-trait branch from ad91b3b to 9abef45 Compare December 17, 2025 16:03
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