-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Foundation API Conformance Update: Errors #581
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
@swift-ci Please test |
@DougGregor Any thoughts/concerns about this change? I ported the |
Hmm. Looks like a serious compiler crash. Can't replicate on Linux myself, but looking into it. |
Perhaps there was a timing issue involved here. I want to see if re-testing makes any sort of difference. @swift-ci Please test |
(For reference, the failure is still available to view here for the time being while CI re-runs) |
|
||
extension NSError { | ||
/// The "embedded" NSError is itself. | ||
public func _getEmbeddedNSError() -> AnyObject? { |
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.
_getEmbeddedNSError
isn't actually used when we don't have an Objective-C runtime, so you can remove this bit.
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.
Figured, but wasn't 100% sure (about this and about _GenericObjCError
); will remove.
I doubt this will fix the CI build error, but it's worth a shot. |
@swift-ci Please test |
The compiler crash looks like we're trying to do some bridging without checking for ObjC interop. |
For reference, the rest of this PR looks good to me. Thank you! |
@DougGregor Figured; trying to diagnose, though haven't been able to reproduce on Linux yet, which will make testing expensive if I have to push to CI every time. Thanks for the help! |
Pushed a change that might avoid the compilation crash we see here. |
@swift-ci Please test |
Looks like that fixed the |
@swift-ci Please test |
Perfect. Avoiding the (missing) bridging by overriding |
Changes
NSCocoaError
→CocoaError
RecoverableError
,LocalizedError
) from overlay