mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user