Skip to content

Backport "Bump Scala CLI to v1.8.4 (was v1.8.3)" to 3.7.2 #23547

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 7 commits into from
Jul 16, 2025

Conversation

WojciechMazur
Copy link
Contributor

Backports #23538 to the 3.7.2-RC2.

PR submitted by the release tooling.
[skip ci]

tgodzik and others added 7 commits July 16, 2025 15:11
The body of isLegalPrefix used to read:

    pre.isStable || !ctx.phase.isTyper

but was changed to drop the second condition in #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 #23423.

To make the testcases added in #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 #23423.
Fixes #22676.

[Cherry-picked 2e4bc0a]
They were previously fixed from crashing to erroring state, now
compiling.
The cause of the previous crashes looks the same as the one fixes in
this PR, where the stale synthetic top level package object would be
brought forward, causing other stale symbols to be used.

[Cherry-picked 08b8340]
Fixes #23494 

When inspecting unused implicit parameters, the check skips parameters
which are "marker traits". It tests for any members of the type (or its
upper bound) which are not "universal members". This commit uses the
`resultType` to avoid an error
```
invalid new prefix
```
while computing members where the type is a `LambdaType`.

A future improvement would be not to request `allMembers`, since the
check only needs to find one that is not universal.

The necessitating change was
2e4bc0a.
[Cherry-picked a5e15ab]
…23506)

Don't force completion of annotation unpickling when testing for
SilentIntoAnnot

Fixes #23496
[Cherry-picked 9e28b14]
@WojciechMazur WojciechMazur self-assigned this Jul 16, 2025
Base automatically changed from backport-release-3.7.2-23506 to release-3.7.2 July 16, 2025 20:58
@WojciechMazur WojciechMazur merged commit 479262e into release-3.7.2 Jul 16, 2025
44 of 48 checks passed
@WojciechMazur WojciechMazur deleted the backport-release-3.7.2-23538 branch July 16, 2025 21:04
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.

5 participants