Skip to content

Circular validation cleanups, part 1 #27357

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

slavapestov
Copy link
Contributor

I'm chipping away at validateDecl() cycles, so that we can have validateDecl() diagnose instead of silently returning if the declaration is already being validated. This PR has some preliminary cleanups.

…n-empty Type

Return an ErrorType on circularity instead of Type().
This also gets rid of a usage of TypeAliasType::get().
…Type

In the case of circular type aliases, this now returns ErrorType
instead of Type().
@slavapestov slavapestov requested a review from CodaFi September 25, 2019 02:43
@slavapestov slavapestov force-pushed the circular-validation-cleanups branch from 4a8b002 to 5e49002 Compare September 25, 2019 02:51
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility Debug

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slavapestov slavapestov merged commit 98aa47c into swiftlang:master Sep 25, 2019
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