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

Improve cfg_if! parsing during module resolution #5341

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ytmimi
Copy link
Contributor

@ytmimi ytmimi commented May 13, 2022

Fixes #4442

  • Prevent Infinite loop when reaching tokens that can't be parsed as items. For example, nested if #[..] checks.
  • Handle arbitrarily nested if #[..], else if #[..], else checks.

Edit: closes #5428

ytmimi added 4 commits June 24, 2024 15:13
Fixes 4442

* Prevent Infinite loop when reaching tokens that can't be parsed as
  items. For example, nested `if #[..]` checks.
* Handle arbitrarily nested `if #[..]`, `else if #[..]`, `else` checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rusfmt hangs when using cfg-if macro Aborted using cfg-if: memory allocation of <tons of> bytes failed
1 participant