Skip to content

Fix HeadType::matches fallthrough for NoExn#12350

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
zzjas:fix-heap-noexn-match
Jan 14, 2026
Merged

Fix HeadType::matches fallthrough for NoExn#12350
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
zzjas:fix-heap-noexn-match

Conversation

@zzjas
Copy link
Copy Markdown
Contributor

@zzjas zzjas commented Jan 14, 2026

HeapType::NoExn.matches() returns true for all types due to probably a typo in the fallthrough arm. Without the fix, the newly added test would fail with:

thread 'types::heap_type_matches_noexn' (3801618) panicked at tests/all/types.rs:695:5:
assertion failed: !HeapType::NoExn.matches(&HeapType::Func)

Skipped raising an issue since it's quite trivial but please let me know if having an issue helps the bookkeeping. Thanks for looking into this!

@zzjas zzjas requested a review from a team as a code owner January 14, 2026 18:22
@zzjas zzjas requested review from fitzgen and removed request for a team January 14, 2026 18:22
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 Jan 14, 2026
Merged via the queue into bytecodealliance:main with commit f947672 Jan 14, 2026
45 checks passed
@zzjas zzjas deleted the fix-heap-noexn-match branch January 30, 2026 23:07
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