dev-er1 opened PR #13953 from dev-er1:simplify-datavalue-partialeq to bytecodealliance:main:
This simplifies the
PartialEqimplementation forDataValueby replacing the repeated... => falsematch arms with a single wildcard arm.No functional changes intended.
dev-er1 requested cfallin for a review on PR #13953.
dev-er1 requested wasmtime-compiler-reviewers for a review on PR #13953.
:thumbs_up: cfallin submitted PR review:
Thanks! Happy to merge once the rustfmt issue is fixed.
alexcrichton commented on PR #13953:
One possible note here is that this is an intentional idiom you'll find throughout Wasmtime in a number of places. The intentional part is that if a new variant is added the compiler's exhaustive-match checks flag the
matchas "gotta add more arms here". With a catch-all like proposed in this PR adding a new variant will get no such warnings and it'd be some bug later own down the road to force adding thematch. Personally I find that more valuable than removing lines, but that's also a subjective call
:cross_mark: cfallin closed without merge PR #13953.
cfallin commented on PR #13953:
Ah, yeah, sorry, I should've registered that here -- brain saw wildcard -> wildcard and I missed that. Thanks; @dev-er1 we'll close this as above.
dev-er1 commented on PR #13953:
In any case, thanks for the review.
Last updated: Jul 29 2026 at 05:03 UTC