Merge pull request #11627 from moiseev/swift-2-artifacts

[stdlib] Remove the Grand Renaming artifacts of Swift 3 era
This commit is contained in:
Maxim Moiseev
2017-09-05 11:41:18 -07:00
committed by GitHub
69 changed files with 1551 additions and 4498 deletions

View File

@@ -1241,66 +1241,3 @@ public struct ${Self}<Element>
internal let _box: _${Self}Box<Element>
}
% end
@available(*, unavailable, renamed: "AnyIterator")
public struct AnyGenerator<Element> {}
extension AnyIterator {
@available(*, unavailable, renamed: "makeIterator()")
public func generate() -> AnyIterator<Element> {
Builtin.unreachable()
}
}
% for Kind in ['Sequence', 'Collection', 'BidirectionalCollection', 'RandomAccessCollection']:
extension Any${Kind} {
@available(*, unavailable, renamed: "getter:underestimatedCount()")
public func underestimateCount() -> Int {
Builtin.unreachable()
}
}
%end
@available(*, unavailable, renamed: "_AnyCollectionProtocol")
public typealias AnyCollectionType = _AnyCollectionProtocol
@available(*, unavailable, renamed: "_AnyCollectionProtocol")
public typealias AnyCollectionProtocol = _AnyCollectionProtocol
extension _AnyCollectionProtocol {
@available(*, unavailable, renamed: "makeIterator()")
public func generate() -> AnyIterator<Element> {
Builtin.unreachable()
}
}
% for Traversal in TRAVERSALS:
@available(*, unavailable, renamed: "AnyIndex")
public typealias Any${Traversal}Index = AnyIndex
% end
@available(*, unavailable, renamed: "AnyIterator.init(_:)")
public func anyGenerator<G : IteratorProtocol>(_ base: G) -> AnyIterator<G.Element> {
Builtin.unreachable()
}
@available(*, unavailable, renamed: "AnyIterator.init(_:)")
public func anyGenerator<Element>(_ body: () -> Element?) -> AnyIterator<Element> {
Builtin.unreachable()
}
@available(*, unavailable)
public func === <
L : _AnyCollectionProtocol, R : _AnyCollectionProtocol
>(lhs: L, rhs: R) -> Bool {
Builtin.unreachable()
}
@available(*, unavailable)
public func !== <
L : _AnyCollectionProtocol, R : _AnyCollectionProtocol
>(lhs: L, rhs: R) -> Bool {
Builtin.unreachable()
}