Skip to content

Rust: Model [T;n] -> [T] unsized coercions as implicit derefs - #22432

Draft
hvitved wants to merge 6 commits into
github:mainfrom
hvitved:rust/array-slice-unsized-coercion
Draft

Rust: Model [T;n] -> [T] unsized coercions as implicit derefs#22432
hvitved wants to merge 6 commits into
github:mainfrom
hvitved:rust/array-slice-unsized-coercion

Conversation

@hvitved

Copy link
Copy Markdown
Contributor

No description provided.

@hvitved
hvitvedforce-pushed the rust/array-slice-unsized-coercion branch from fe1b663 to 93e96e8CompareAugust 26, 2026 13:51
*/
pragma[inline]
private predicate typeMatch(
predicate typeMatch(

/** A field access expression, for example `x.f`. */
class FieldAccess extends Expr {
/* Gets the receiver of this field access. */
*
* This predicate should perform the dual post-processing of `inferInvocationType`.
*/
default Type inferInvocationTypeContextual(Invocation invocation, TypePath path) {
@github-actionsgithub-actionsBot added the Rust Pull requests that update Rust code label Aug 26, 2026
@hvitved
hvitvedforce-pushed the rust/array-slice-unsized-coercion branch from 93e96e8 to 1df2578CompareAugust 27, 2026 08:53
@hvitvedhvitved changed the title Rust: Model [T;n] -> [T] unsized coercion in type inferenceRust: Model [T;n] -> [T] unsized coercions as implicit derefsAug 28, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RustPull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@hvitved@github-advanced-security