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

Fix import usage tracking for destructure defaulting #9842

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

mattcompiles
Copy link
Contributor

↪️ Pull Request

This PR resolves an issue where imports used exclusively inside destructure defaulting are not marked as used.

This fix is just to ensure we visit the defaulting node if it's present inside the destructure.

🚨 Test instructions

Rust unit test added.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@mattcompiles mattcompiles requested a review from a team July 11, 2024 00:59
Copy link

@itsdouges itsdouges left a comment

Choose a reason for hiding this comment

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

LGTM

@mattcompiles mattcompiles enabled auto-merge (squash) July 11, 2024 01:05
@mattcompiles mattcompiles merged commit 28a80f9 into v2 Jul 11, 2024
17 checks passed
@mischnic mischnic deleted the fix-destructure-default-imports branch July 11, 2024 09:48
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.

4 participants