[Standard library] Eliminate redundant conformance constraints.

Eliminate all of the redundant conformance constraints in the standard
library that were identified by the newly-introduced warning for
redundant, explicitly-specified conformances.
This commit is contained in:
Doug Gregor
2017-03-17 20:15:09 -10:00
parent 87dab47d5d
commit 13c4ae0168
11 changed files with 23 additions and 12 deletions

View File

@@ -628,8 +628,7 @@ public protocol Sequence {
/// A default makeIterator() function for `IteratorProtocol` instances that
/// are declared to conform to `Sequence`
extension Sequence
where Self.Iterator == Self, Self : IteratorProtocol {
extension Sequence where Self.Iterator == Self {
/// Returns an iterator over the elements of this sequence.
public func makeIterator() -> Self {
return self