MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
5.84k stars 11.06k forks source link

[move][move-2024][enums] Fix a small issue when match is malformed #18387

Closed cgswords closed 3 days ago

cgswords commented 4 days ago

Description

This fixes a bug that was previously a compiler crash when a match was malformed and counterexample generation occurred. This was due to some changes for parser resilience combined with moving match analysis to typing.

Test plan

Added the repro test, and it now produces the error as expected.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

vercel[bot] commented 4 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2024 11:15pm
3 Ignored Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **multisig-toolkit** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/multisig-toolkit/3HD9iHGNRPPv2cZ1rmREpQfoRJNq)) | [Visit Preview](https://multisig-toolkit-git-cgswords-matchbug2fix-mysten-labs.vercel.app) | | Jun 25, 2024 11:15pm | | **sui-kiosk** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/sui-kiosk/9drbJy7z8cUjmSJTPzRY57Vmh8FS)) | [Visit Preview](https://sui-kiosk-git-cgswords-matchbug2fix-mysten-labs.vercel.app) | | Jun 25, 2024 11:15pm | | **sui-typescript-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/sui-typescript-docs/6j5nM6Ner2JWn7H4mkM9VWgkkf55)) | [Visit Preview](https://sui-typescript-docs-git-cgswords-matchbug2fix-mysten-labs.vercel.app) | | Jun 25, 2024 11:15pm |