Skip to content

Comments

frontend: vectors and arrays no longer support in-memory coercion#25186

Merged
andrewrk merged 6 commits intomasterfrom
vector-memory-coercion
Sep 8, 2025
Merged

frontend: vectors and arrays no longer support in-memory coercion#25186
andrewrk merged 6 commits intomasterfrom
vector-memory-coercion

Conversation

@andrewrk
Copy link
Member

@andrewrk andrewrk commented Sep 8, 2025

closes #25172

Migration Guide

If you were using @ptrCast to convert between array memory and vector memory, use coercion instead.

If you were coercing from anyerror![4]i32 to anyerror!@Vector(4, i32) or similar, you need to unwrap the error first.

@andrewrk andrewrk added breaking Implementing this issue could cause existing code to no longer compile or have different behavior. release notes This PR should be mentioned in the release notes. labels Sep 8, 2025
@andrewrk andrewrk enabled auto-merge September 8, 2025 07:24
@andrewrk andrewrk merged commit 05cff8a into master Sep 8, 2025
14 checks passed
@andrewrk andrewrk deleted the vector-memory-coercion branch September 8, 2025 10:59
@tecanec
Copy link
Contributor

tecanec commented Sep 23, 2025

Is this what removed the ability to index vectors with runtime indices?

@linusg
Copy link
Collaborator

linusg commented Sep 23, 2025

no, that's #25154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Implementing this issue could cause existing code to no longer compile or have different behavior. release notes This PR should be mentioned in the release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vector to array coercion miscompilation

4 participants