Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[move] Fix issue where varcalls could persist into typing without an error. #17958

Merged
merged 2 commits into from
May 30, 2024

Conversation

cgswords
Copy link
Contributor

Description

This fixes a bug in how var calls were being resolved across naming into typing, when the variable was not a valid macro call target.

This also adds a lambda feature gate to make error reporting a bit nicer in these cases.

Test plan

New tests cover the crash/bug and ensure it doesn't occur now.


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.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@cgswords cgswords requested review from tnowacki and tzakian May 28, 2024 19:00
Copy link

vercel bot commented May 28, 2024

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 May 30, 2024 8:46pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 30, 2024 8:46pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 30, 2024 8:46pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview May 30, 2024 8:46pm

@cgswords cgswords enabled auto-merge (squash) May 30, 2024 21:07
@cgswords cgswords merged commit 0d19e90 into main May 30, 2024
48 checks passed
@cgswords cgswords deleted the cgswords/var_naming_fix branch May 30, 2024 21:09
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request Jul 29, 2024
…error. (MystenLabs#17958)

## Description 

This fixes a bug in how var calls were being resolved across naming into
typing, when the variable was not a valid macro call target.

This also adds a `lambda` feature gate to make error reporting a bit
nicer in these cases.

## Test plan 

New tests cover the crash/bug and ensure it doesn't occur now.

---

## 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.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
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