-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.0] Get the ModelAssistant source compatibility project building with the swift-5.0-branch #20971
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
Conversation
…function types. I have a follow-up change to correctly classify optional arguments, and with that fix applied we incorrectly emit rethrow diagnostics for 'nil' arguments passed in places where optional throwing functions are expected. This change ensures that we strip the throwing bit off of the nested function type so that we don't consider 'nil' arguments in these positions as potentially throwing functions. (cherry picked from commit 1ed46b4)
@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.
Approved for after convergence.
@shahmishal IIRC, cross-repo testing doesn't work with the source compatibility suite. Am I remembering that correctly? |
swiftlang/swift-source-compat-suite#298 @swift-ci Please test source compatibility |
The source compatibility failures consist of a UPASS that will go away once we merge swiftlang/swift-source-compat-suite#298, and then a few UPASSes that are unrelated to my change and reproduce without it. |
@swift-ci Please test source compatibility |
@swift-ci Please test |
@AnnaZaks This should be good to merge. Most of the UPASS results in the source compatibility suite are unrelated to this change, e.g. they also show up here: https://ci.swift.org/job/swift-PR-source-compat-suite-debug/444/ The one that is related to this change will go away once we merge this and then swiftlang/swift-source-compat-suite#298. |
Explanation: There were a couple issues with how rethrows diagnostics were dealing with optional function types, resulting in a verification issue in a new source compatibility suite project.
Issue: SR-9102 / rdar://problem/45615204
Scope: Only affects code that has arguments with are optional throwing function types.
Risk: Low.
Testing: Added a new test for the case where we were failing verification.
Reviewed by: @rjmccall, @xedin
Does not affect ABI.