[Stdlib] Silence all warnings about deprecated @objc inference.

This eliminates 26 Objective-C entry points that we never intended to expose, but that came “for free” with the @objc inference rules.
This commit is contained in:
Doug Gregor
2017-03-28 17:16:29 -07:00
parent 79440cd7f4
commit cc225eb9fa
5 changed files with 41 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ internal final class _EmptyArrayStorage
@_inlineable
@_versioned
@nonobjc
init(_doNotCallMe: ()) {
_sanityCheckFailure("creating instance of _EmptyArrayStorage")
}
@@ -40,6 +41,7 @@ internal final class _EmptyArrayStorage
@_inlineable
@_versioned
@nonobjc
override func _getNonVerbatimBridgedCount() -> Int {
return 0
}
@@ -121,6 +123,7 @@ final class _ContiguousArrayStorage<Element> : _ContiguousArrayStorageBase {
/// - Precondition: `Element` is bridged non-verbatim.
@_inlineable
@_versioned
@nonobjc
override internal func _getNonVerbatimBridgedCount() -> Int {
_sanityCheck(
!_isBridgedVerbatimToObjectiveC(Element.self),