Skip to content

Fix up swift-corelibs-foundation for abolition of IUO type in SE-0054 #343

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 3 commits into from
May 3, 2016

Conversation

cwillmor
Copy link
Contributor

@cwillmor cwillmor commented May 3, 2016

This commit fixes up swift-corelibs-foundation for when SE-0054 is merged into swift master. See swiftlang/swift#2322. The two PRs are to be merged in conjunction.

@@ -971,28 +971,28 @@ extension NSString {
}

public var decomposedStringWithCanonicalMapping: String {
let string = CFStringCreateMutable(kCFAllocatorSystemDefault, 0)
let string = CFStringCreateMutable(kCFAllocatorSystemDefault, 0)!
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not clear to me why the result here is nullable in the first place...

Copy link
Contributor Author

@cwillmor cwillmor May 3, 2016

Choose a reason for hiding this comment

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

CFStringCreateMutable appears to have IUO return type when imported. Maybe it hasn't been annotated for nullability.

@parkera
Copy link
Contributor

parkera commented May 3, 2016

Merge when ready

@cwillmor cwillmor merged commit 4331805 into swiftlang:master May 3, 2016
@cwillmor
Copy link
Contributor Author

cwillmor commented May 3, 2016

Thanks!

atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
Workaround SR-13822 by keeping the file handle alive for the connection
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