Skip to content

Commit d1b9293

Browse files
committed
[Stdlib] More renaming tweaks to account for changes on swift-5.0-branch.
1 parent bfae42d commit d1b9293

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

stdlib/public/core/StringObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ extension _StringObject {
11001100
}
11011101
if _countAndFlags.isNativelyStored {
11021102
let anyObj = Builtin.reinterpretCast(largeAddressBits) as AnyObject
1103-
_internalInvariant(anyObj is _StringStorage)
1103+
_internalInvariant(anyObj is __StringStorage)
11041104
}
11051105
}
11061106

stdlib/public/core/StringStorage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ extension _AbstractStringStorage {
126126
switch knownOther {
127127
case .storage:
128128
return _nativeIsEqual(
129-
_unsafeUncheckedDowncast(other, to: _StringStorage.self))
129+
_unsafeUncheckedDowncast(other, to: __StringStorage.self))
130130
case .shared:
131131
return _nativeIsEqual(
132-
_unsafeUncheckedDowncast(other, to: _SharedStringStorage.self))
132+
_unsafeUncheckedDowncast(other, to: __SharedStringStorage.self))
133133
#if !(arch(i386) || arch(arm))
134134
case .tagged:
135135
fallthrough

test/api-digester/Outputs/stability-stdlib-abi.swift.expected

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Class _EmptySetSingleton has changed its super class from _RawSetStorage to __Ra
88
Class _RawDictionaryStorage has been renamed to Class __RawDictionaryStorage
99
Class _RawSetStorage has been renamed to Class __RawSetStorage
1010
Class _SetStorage has changed its super class from _RawSetStorage to __RawSetStorage
11-
Class _SharedStringStorage has been renamed to Class __SharedStringStorage
12-
Class _StringStorage has been renamed to Class __StringStorage
1311
Constructor Dictionary._Variant.init(cocoa:) has parameter 0 type change from _CocoaDictionary to __CocoaDictionary
1412
Constructor Dictionary.init(_cocoa:) has parameter 0 type change from _CocoaDictionary to __CocoaDictionary
1513
Constructor Set._Variant.init(cocoa:) has parameter 0 type change from _CocoaSet to __CocoaSet
@@ -36,9 +34,9 @@ Func _SetStorage.resize(original:capacity:move:) has parameter 0 type change fro
3634
Struct _CocoaDictionary has been renamed to Struct __CocoaDictionary
3735
Struct _CocoaSet has been renamed to Struct __CocoaSet
3836
Var Dictionary._Variant.asCocoa has declared type change from _CocoaDictionary to __CocoaDictionary
39-
Var Dictionary._Variant.object has declared type change from _BridgeStorage<_RawDictionaryStorage, _NSDictionary> to _BridgeStorage<__RawDictionaryStorage>
37+
Var Dictionary._Variant.object has declared type change from _BridgeStorage<_RawDictionaryStorage> to _BridgeStorage<__RawDictionaryStorage>
4038
Var Set._Variant.asCocoa has declared type change from _CocoaSet to __CocoaSet
41-
Var Set._Variant.object has declared type change from _BridgeStorage<_RawSetStorage, _NSSet> to _BridgeStorage<__RawSetStorage>
39+
Var Set._Variant.object has declared type change from _BridgeStorage<_RawSetStorage> to _BridgeStorage<__RawSetStorage>
4240
Var _CocoaDictionary.Index.dictionary has declared type change from _CocoaDictionary to __CocoaDictionary
4341
Var _NativeDictionary._storage has declared type change from _RawDictionaryStorage to __RawDictionaryStorage
4442
Var _NativeSet._storage has declared type change from _RawSetStorage to __RawSetStorage

0 commit comments

Comments
 (0)