-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Serialization] Deal with ErrorTypes in specialized conformances #17523
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
[Serialization] Deal with ErrorTypes in specialized conformances #17523
Conversation
Note that this is going straight to the 4.2 branch, since we don't serialize Substitutions like this at all on master. @swift-ci Please test |
@swift-ci Please test source compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. I had thought we'd addressed this issues well-enough to get through 4.2, but tolerating error types seems reasonable.
Oops, a bit of another change slipped in. Will fix. Source compatibility test here. |
This can represent a conformance that can never actually be used, such as an inherited conditional conformance where the subclass has provided a concrete generic parameter. (See the test case.) We probably shouldn't be forming these conformances at all, but for now this lets us build without errors. https://bugs.swift.org/browse/SR-7337
834da5f
to
04cfdbf
Compare
@swift-ci Please test |
Build failed |
Build failed |
Hm, there was a failure building CoreStore that doesn't seem to be present normally. Need to look into this before merging. |
Reproduced. |
After a day's worth of investigation, it looks like the CoreStore problem wasn't due to this change. Let's try again. @swift-ci Please test source compatibility |
@swift-ci Please test source compatibility |
This can represent a conformance that can never actually be used, such as an inherited conditional conformance where the subclass has provided a concrete generic parameter. (See the test case.)
We probably shouldn't be forming these conformances at all, but for now this lets us build without errors. Alternate solution compared to #17406.
SR-7337 / rdar://problem/39142121