Skip to content

Mark _MutablePairHandle and _MutablePair as @usableFromInline #1768

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 2 commits into from
Nov 15, 2018

Conversation

tkremenek
Copy link
Member

Under Swift 5 mode we currently get the following error:

IndexSet.swift:154:18: error: type referenced from a '@usableFromInline' property must be '@usableFromInline' or public
01:12:50     internal var _handle: _MutablePairHandle<NSIndexSet, NSMutableIndexSet>

This change is technically ABI impacting for corelibs-Foundation.

@tkremenek
Copy link
Member Author

@swift-ci test

Copy link
Contributor

@phausler phausler left a comment

Choose a reason for hiding this comment

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

looks good to me, do we know why this wasn't able to be caught before?

@tkremenek
Copy link
Member Author

@slavapestov probably knows, but I suspect the diagnostics for @usableFromInline were staged in levels of severity under Swift 5 mode.

@tkremenek
Copy link
Member Author

@swift-ci test linux and merge

@tkremenek tkremenek merged commit e740493 into swiftlang:master Nov 15, 2018
@slavapestov
Copy link
Contributor

@tkremenek @phausler That's right. We ran out of time in 4.2 so we didn't implement @usableFromInline checks fully. If you got it wrong you could get a linker error. In 5.0 we implemented it but staged it in so that it doesn't break source compatibility in the cases that worked on accident.

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