-
Notifications
You must be signed in to change notification settings - Fork 819
Misc. unused opens analyzer fixes #18510
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
base: main
Are you sure you want to change the base?
Misc. unused opens analyzer fixes #18510
Conversation
❗ Release notes requiredCaution No release notes found for the changed paths (see table below). Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format. The following format is recommended for this repository:
If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request. You can open this PR in browser to add release notes: open in github.dev
|
1263077
to
23d3cbc
Compare
(getting a fresh build to see what the test failure was about, the previous results have expired) |
Sorry, I should have left a comment. Those test failures were legit. The reverse-processing trick that was meant to fix #16226 breaks other scenarios. I think the real solution would require keeping some kind of open → shadow → reopen tracking to detect potential intervening shadowings that make a subsequent reopen not actually redundant. Some of the fixes in this PR do not require that, though, so I could keep those and leave the open → shadow → reopen tracking for another PR. |
Got it, we would exchange a fixed bug for opening another one when it comes to shadowings. The analyzer could maybe detect that after a suggested removal, the resolution from names to symbols has changed - but that would increase CPU intensity of the analysis. |
Description
open type T
treated as unused when unqualified extension member onT
used #17629.Open declaration can be removed
when having records with the same name #16226.Checklist