Numbered all FIXME(ABI) entries for tracking purposes. (#4868)

This commit is contained in:
airspeedswift
2016-09-19 16:41:41 -07:00
committed by GitHub
parent 49d4540286
commit ed5231b47c
40 changed files with 128 additions and 109 deletions

View File

@@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//
// FIXME(ABI)(compiler limitation): This protocol exists to identify
// FIXME(ABI)#35 (Concrete Same Type Requirements): This protocol exists to identify
// `AnyHashable` in conditional extensions. Replace this protocol
// with conditional extensions on `Set` and `Dictionary` "where Key ==
// AnyHashable".
@@ -24,7 +24,7 @@ extension AnyHashable : _AnyHashableProtocol {}
// Convenience APIs for Set<AnyHashable>
//===----------------------------------------------------------------------===//
// FIXME(ABI): remove these trampolines when extensions below can be
// FIXME(ABI)#36 (Overload resolution): remove these trampolines when extensions below can be
// properly expressed in the language.
extension Set {
@inline(__always)
@@ -49,7 +49,7 @@ extension Set {
}
}
// FIXME(ABI)(compiler limitation): replace with `where Element == AnyHashable`.
// FIXME(ABI)#37 (Concrete Same Type Requirements): replace with `where Element == AnyHashable`.
extension Set where Element : _AnyHashableProtocol {
public mutating func insert<ConcreteElement : Hashable>(
_ newMember: ConcreteElement
@@ -82,7 +82,7 @@ extension Set where Element : _AnyHashableProtocol {
// Convenience APIs for Dictionary<AnyHashable, *>
//===----------------------------------------------------------------------===//
// FIXME(ABI): remove these trampolines when extensions below can be
// FIXME(ABI)#38 (Overload resolution): remove these trampolines when extensions below can be
// properly expressed in the language.
extension Dictionary {
internal subscript(_concreteKey key: Key) -> Value? {
@@ -109,10 +109,10 @@ extension Dictionary {
}
}
// FIXME(ABI)(compiler limitation): replace with `where Element == AnyHashable`.
// FIXME(ABI)#39 (Concrete Same Type Requirements): replace with `where Element == AnyHashable`.
extension Dictionary where Key : _AnyHashableProtocol {
public subscript(_ key: _Hashable) -> Value? {
// FIXME(ABI)(compiler limitation): replace this API with a
// FIXME(ABI)#40 (Generic subscripts): replace this API with a
// generic subscript.
get {
return self[_concreteKey: key._toAnyHashable() as! Key]