Skip to content

Remove a couple of calls to hasComputedGenericSignature() #37662

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
merged 2 commits into from
May 27, 2021

Conversation

slavapestov
Copy link
Contributor

These no longer seem to do anything. The last remaining caller of hasComputedGenericSignature() is in the GSB, where it enables this code to type check:

enum Term<S> where S : Sequence, S.Element == Term {}

The generic signature of Term becomes <S where S : Sequence, S.Element == Term<S>>, which I'm not sure is even supposed to work with our type system model. I'll investigate this example further and remove hasComputedGenericSignature() entirely in a follow-up PR.

… checker diagnostics

Removing this exposed a re-entrant diagnostic emission, so let's fix that too.
@slavapestov slavapestov requested a review from CodaFi May 26, 2021 22:50
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit 6efd419 into swiftlang:main May 27, 2021
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.

1 participant