Skip to content

Commit ac7c93a

Browse files
committed
---
yaml --- r: 317421 b: refs/heads/master-rebranch c: 8dc7398 h: refs/heads/master i: 317419: 961608f
1 parent c4206ba commit ac7c93a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14571457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14581458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14591459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460-
refs/heads/master-rebranch: 344fd583160b035c9763d9062d192c021c18b32c
1460+
refs/heads/master-rebranch: 8dc7398842caac7ed5fdd8b10224844fc3eb6152

branches/master-rebranch/stdlib/public/core/BridgeObjectiveC.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,12 @@ public func _extractDynamicValue<T>(_ value: T) -> AnyObject?
649649
@_silgen_name("_swift_bridgeToObjectiveCUsingProtocolIfPossible")
650650
public func _bridgeToObjectiveCUsingProtocolIfPossible<T>(_ value: T) -> AnyObject?
651651

652-
@usableFromInline
653-
protocol _Unwrappable {
654-
func unwrap() -> Any?
652+
internal protocol _Unwrappable {
653+
func _unwrap() -> Any?
655654
}
656655

657656
extension Optional: _Unwrappable {
658-
func unwrap() -> Any? {
657+
internal func _unwrap() -> Any? {
659658
return self
660659
}
661660
}
@@ -706,7 +705,7 @@ public func _bridgeAnythingToObjectiveC<T>(_ x: T) -> AnyObject {
706705
}
707706

708707
if !done, let wrapper = source as? _Unwrappable {
709-
if let value = wrapper.unwrap() {
708+
if let value = wrapper._unwrap() {
710709
result = value as AnyObject
711710
} else {
712711
result = _nullPlaceholder

0 commit comments

Comments
 (0)