Skip to content

[ClangImporter] Remove manual setting of Protocol Self depth #27352

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 1 commit into from
Sep 25, 2019

Conversation

jrose-apple
Copy link
Contributor

At one point in the past we probably needed to set this explicitly, but now it seems to be handled for us or derived somewhere.

No functionality change.

At one point in the past we probably needed to set this explicitly,
but now it seems to be handled for us or derived somewhere.

No functionality change.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test source compatibility

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.

Computing the interface type should run off and compute the generic signature which sets this. I'm not familiar with this part of the codebase, so I'm not sure if you want to turn this into an assert, but LGTM.

@jrose-apple
Copy link
Contributor Author

I'm counting on existing assertions and verifier checks to catch anything that went wrong. It's weird that the importer ever had to do it in the first place, so an assertion here doesn't make sense.

@jrose-apple jrose-apple merged commit dcf607d into swiftlang:master Sep 25, 2019
@jrose-apple jrose-apple deleted the know-thy-self branch September 25, 2019 19:54
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.

3 participants