Skip to content

Backport "Fix regressions in asSeenFrom introduced in 3.7" to 3.3 LTS #476

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

Merged
merged 2 commits into from
Jul 4, 2025

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Jun 30, 2025

Backports scala#23438 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

smarter and others added 2 commits June 30, 2025 17:17
The body of isLegalPrefix used to read:

    pre.isStable || !ctx.phase.isTyper

but was changed to drop the second condition in scala#21954 (originally included in
3.6.4-RC1, reverted from 3.6.4 final but back in 3.7). This has led to a
number of regressions, the last ones discussed in scala#23423.

To make the testcases added in scala#21594 pass, this PR proposes a less drastic
change: relax isLegalPrefix as before, unless we're doing an implicit search.
This should dramatically reduce the possibility for regressions.

Fixes scala#23423.
Fixes scala#22676.
The body of isLegalPrefix used to read:

    pre.isStable || !ctx.phase.isTyper

but was changed to drop the second condition in scala#21954 (originally included in
3.6.4-RC1, reverted from 3.6.4 final but back in 3.7). This has led to a
number of regressions, the last ones discussed in scala#23423.

To make the testcases added in scala#21594 pass, this PR proposes a less drastic
change: relax isLegalPrefix as before, unless we're doing an implicit search.
This should dramatically reduce the possibility for regressions.

Fixes scala#23423.
Fixes scala#22676.

[Cherry-picked 2e4bc0a][modified]
Base automatically changed from backport-lts-3.3-23439 to lts-3.3 July 4, 2025 11:59
@tgodzik
Copy link
Author

tgodzik commented Jul 4, 2025

No regressions detected in the community build up to backport-lts-3.3-23434.

Reference

@tgodzik tgodzik merged commit a147415 into lts-3.3 Jul 4, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-23438 branch July 4, 2025 11:59
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