Skip to content

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Aug 15, 2025

Delete the old option to guard against false positives. It was a backstop for the new feature.

The option was left in 3.7 for compatibility but should be removed for 3.8.

Delete old consideration of CanEqual, since the current feature does not warn about "marker interfaces". (Edit: actually that needs work to probe for candidate CE; that sounds workable, since it's not implicit search per se

A "masking" selector import a.b as _ is considered "used" if the import includes a wildcard and the import was interrogated for the masked name.

Fixes #23758

@som-snytt
Copy link
Contributor Author

Ha, somewhere in my backlog of useful PRs is a fix to the test rig so that

///> using options -Wunused:strict-no-implicit-warn

is handled correctly. I ought to have deleted the line anyway.

@som-snytt som-snytt changed the title Remove obsolete unused options Warn unused masking imports, remove obsolete unused options Aug 17, 2025
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.

No warning for unused "masking" import selector
1 participant