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 erasure crash for Inlined rhs of a context function closure #20398

Merged
merged 1 commit into from
May 20, 2024

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented May 13, 2024

Fixes #16963

The regression here was caused by 229fdaa, by the changes to TreeInfo. Since the aim of that PR was to reduce unnecessary Inlined removal, instead of reintroducing Inlined node removal in closureDef in TreeInfo (which is used in many places in the compiler), we just remove it directly in erasure, where it would have been removed later in the same manner either way (in typedInlined).

This is achieved by safely removing Inlined nodes at that point,
in the same manner they would be removed later in `typedInlined`` in
the same phase.
@jchyb jchyb requested a review from hamzaremmal May 20, 2024 08:04
@hamzaremmal hamzaremmal merged commit 8ef2c5c into scala:main May 20, 2024
19 checks passed
@hamzaremmal hamzaremmal deleted the fix-i16963 branch May 20, 2024 16:47
@Kordyjan Kordyjan added this to the 3.5.1 milestone Jul 3, 2024
WojciechMazur added a commit that referenced this pull request Jul 8, 2024
…sure" to LTS (#21114)

Backports #20398 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
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.

Symbol.asQuotes not working for quote that creates a context function
3 participants