Skip to content

Register operator dependencies on direct lookup requests #31456

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

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Apr 30, 2020

Make sure a dependency gets registered when a direct lookup for an operator or precedence group decl is fired off. This is necessary in order to ensure that operator redeclaration checking records the right dependencies (and any future logic that might want to perform direct operator lookups).

In doing so, this PR also removes the compatibility logic for the old referenced name tracker that would skip recording dependencies in certain cases. This should be safe as the new logic will record strictly more dependencies than the old logic.

Make sure a dependency gets registered when a
direct lookup is fired off. This is necessary in
order to ensure that operator redeclaration
checking records the right dependencies (and any
future logic that might want to perform direct
operator lookups).

In doing so, this commit also removes the
compatibility logic for the old referenced name
tracker that would skip recording dependencies in
certain cases. This should be safe as the new
logic will record strictly more dependencies than
the old logic.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from CodaFi April 30, 2020 22:42
@hamishknight hamishknight merged commit d22d189 into swiftlang:master May 1, 2020
@hamishknight hamishknight deleted the operational-dependencies branch May 1, 2020 00:57
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.

2 participants