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

compiler: Fix infinite recursion trying to inline function argument #7816

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

ogoffart
Copy link
Member

@ogoffart ogoffart commented Mar 6, 2025

We can't use body.visit_recursive_mut because it will recurse on the newly replaced argument. Implement recursion manually instead.

Fixes #7811

@ogoffart ogoffart added the candidate-for-bugfix-release Label for PRs that would make sense to cherry-pick into a spontaneously created bug fix release bran label Mar 6, 2025
We can't use `body.visit_recursive_mut` because it will recurse on the
newly replaced argument. Implement recursion manually instead.
@ogoffart ogoffart requested a review from tronical March 6, 2025 16:24
@ogoffart ogoffart merged commit a3ab90d into master Mar 6, 2025
38 checks passed
@ogoffart ogoffart deleted the olivier/fix-7811 branch March 6, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
candidate-for-bugfix-release Label for PRs that would make sense to cherry-pick into a spontaneously created bug fix release bran
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slint LSP live preview: memory allocation runaway / system crash
2 participants