Skip to content

Add more snapshots for feature gate paths and fix a panic on @since include#2510

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
PhoebeSzmucer:feature-gate-snapshots
Apr 30, 2026
Merged

Add more snapshots for feature gate paths and fix a panic on @since include#2510
alexcrichton merged 2 commits intobytecodealliance:mainfrom
PhoebeSzmucer:feature-gate-snapshots

Conversation

@PhoebeSzmucer
Copy link
Copy Markdown
Contributor

Adding a couple of snapshots that will be useful for making sure that the error messages don't regress in #2482

In the process I discovered a panic in the new bad-since-on-include.wit test (coming from process_world_includes). We were reading from resolve.worlds[include.id].name.as_str() but include.id is an index from the unresolved package's arena, not the Resolve's arena. This code path wasn't being hit before in any tests.

@PhoebeSzmucer PhoebeSzmucer requested a review from a team as a code owner April 30, 2026 10:37
@PhoebeSzmucer PhoebeSzmucer requested review from pchickey and removed request for a team April 30, 2026 10:37
Copy link
Copy Markdown
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Apr 30, 2026
Merged via the queue into bytecodealliance:main with commit 1a2b915 Apr 30, 2026
37 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.

2 participants