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

Revert unconditional lint of Inlined expansion #22815

Merged
merged 3 commits into from
Mar 23, 2025

Conversation

som-snytt
Copy link
Contributor

The tweak to lint Inlined is reverted, on suspicion that it is the root cause of #22812 . (Investigation ongoing.) (If it reverts without a test change, then it doesn't have test coverage.)

Gather legacy tests about type parameters and delete the untried test files. Same for unused test files; removing check and flags files for warn-unused-privates is a follow-up chore for a previous PR.

Fixes #22812 (provisionally)

@som-snytt som-snytt marked this pull request as ready for review March 16, 2025 04:49
@Gedochao Gedochao requested a review from jchyb March 17, 2025 07:49
Copy link
Contributor

@jchyb jchyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also confirm this partial revert fixes the issue in the linked project. Minimisation might be hard (or even impossible, if this is not an infinite loop, but "just" a compilation speed regression), so I am fine with not having the dedicated test for that here.

Thank you @som-snytt!

@jchyb jchyb merged commit 451fdcd into scala:main Mar 23, 2025
29 checks passed
@som-snytt som-snytt deleted the cleanup/untried branch March 23, 2025 20:09
@jchyb jchyb added this to the 3.7.0 milestone Mar 24, 2025
@jchyb jchyb added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler hangs under -Wunused with Scala 3.7.0-RC1
2 participants