Merge remote-tracking branch 'origin/master' into swift-3-indexing-model

This commit is contained in:
Dmitri Gribenko
2016-03-21 14:41:15 -07:00
404 changed files with 11030 additions and 6789 deletions

View File

@@ -368,22 +368,6 @@ extension MutableCollection
}
}
% for Self in [ 'Sequence', 'MutableCollection' ]:
extension ${Self} where Self.Iterator.Element : Comparable {
@available(*, unavailable, renamed: "sorted")
public func sort() -> [Iterator.Element] {
fatalError("unavailable function can't be called")
}
@available(*, unavailable, renamed: "sorted(isOrderedBefore:)")
public func sort(
@noescape isOrderedBefore: (Iterator.Element, Iterator.Element) -> Bool
) -> [Iterator.Element] {
fatalError("unavailable function can't be called")
}
}
%end
extension MutableCollection
where
Self : RandomAccessCollection,