Skip to content

Commit 12e2874

Browse files
authored
Merge pull request swiftlang#1397 from hartbit/recursive-constraint-warnings
Fix recursive constraint warnings
2 parents e36eebf + 6570f94 commit 12e2874

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/Basic/OutputByteStream.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ public class OutputByteStream: TextOutputStream {
116116

117117
/// Write a collection of bytes to the buffer.
118118
public final func write<C: Collection>(collection bytes: C) where
119-
C.Iterator.Element == UInt8,
120-
C.SubSequence: Collection {
119+
C.Iterator.Element == UInt8 {
121120
queue.sync {
122121
// This is based on LLVM's raw_ostream.
123122
let availableBufferSize = self.availableBufferSize
@@ -295,8 +294,7 @@ public func <<< (stream: OutputByteStream, value: ArraySlice<UInt8>) -> OutputBy
295294

296295
@discardableResult
297296
public func <<< <C: Collection>(stream: OutputByteStream, value: C) -> OutputByteStream where
298-
C.Iterator.Element == UInt8,
299-
C.SubSequence: Collection {
297+
C.Iterator.Element == UInt8 {
300298
stream.write(collection: value)
301299
return stream
302300
}

0 commit comments

Comments
 (0)