mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user