Skip to content

Conversation

@Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Nov 6, 2025

Description of Changes

call_view and call_view_anon maintains separate Vec list for view inside Module but ModuleDef used to have single Vec. Hence, Views index is not same across ModuleDef and module itself.

Added a index field inside ViewDef which stores it index inside module.

API and ABI breaking changes

NA

How complicated do you think these changes are? Grade on a scale from 1 to 5,
2,

there could be some existing code relying on poistion in Vec and may not appear as compiler error

Testing

Future smoketests should cover this.

@Shubham8287 Shubham8287 force-pushed the shub/views-fix-view-index branch from 1c0746a to c8ccbc6 Compare November 6, 2025 20:56
Copy link
Collaborator

@joshua-spacetime joshua-spacetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Shub!

@Shubham8287 Shubham8287 changed the base branch from shub/view-from-host to master November 6, 2025 21:15
@Shubham8287 Shubham8287 enabled auto-merge November 6, 2025 21:16
@Shubham8287 Shubham8287 added this pull request to the merge queue Nov 7, 2025
Merged via the queue into master with commit 8307d7c Nov 7, 2025
42 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants