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

Append instead of prepending import selectors for the current scope when collecting them in CheckUnused #22314

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

KacperFKorban
Copy link
Member

Also make the wildcard selectors exclusion-aware in CheckUnused

closes #21420

@som-snytt
Copy link
Contributor

I have already marked this fixed by my PR, which rewrites the linting phase.

@KacperFKorban KacperFKorban marked this pull request as ready for review January 6, 2025 14:16
@KacperFKorban
Copy link
Member Author

@som-snytt If you can manage to get your PR into the next release, then I'll gladly close this one. Otherwise, merging this one now and replacing it with your rewrite won't hurt.

@som-snytt
Copy link
Contributor

@KacperFKorban no problem, just to avoid duplicate effort. The other PR has items to clean up before I ask someone to spend time on review.

…hen collecting them in CheckUnused; Also make the wildcard selectors exclusion aware in CheckUnused
@KacperFKorban KacperFKorban enabled auto-merge (squash) January 13, 2025 12:41
@KacperFKorban KacperFKorban merged commit af655c9 into scala:main Jan 13, 2025
27 checks passed
@KacperFKorban KacperFKorban deleted the fix-i21420 branch January 13, 2025 12:50
@som-snytt
Copy link
Contributor

The funny thing is that the conflict makes rebasing a PR with many commits excessively painful.

@sjrd
Copy link
Member

sjrd commented Jan 13, 2025

Ugh. I did not think you wanted to keep the history intact. In that case a "keep mine" resolution would have been enough.

What you can do is start by reverting this commit on your branch, then rebase the rest. Then the rebase should be free, and at the end of the day you reintroduce the test case.

@som-snytt
Copy link
Contributor

Thanks, I'll try to improve my gitfu. I have the test case, of course. I tried to be open on my PR about what is to do.

@WojciechMazur WojciechMazur added this to the 3.6.4 milestone Jan 16, 2025
bracevac pushed a commit to dotty-staging/dotty that referenced this pull request Jan 19, 2025
…hen collecting them in CheckUnused (scala#22314)

Also make the wildcard selectors exclusion-aware in CheckUnused

closes scala#21420
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.

Regression for -Wunused:import in business4s/decisions4s
4 participants