Mark retroactive conformances appropriately. (#2569)

Motivation:

In nightly Swift, we now need to mark retroactive conformances when
they are intentional. These conformances are safe for us, so we can
safely suppress the warnings.

Modifications:

- Mark NIOFoundationCompat retroactive conformances.

Result:

Nightly builds work again
This commit is contained in:
Cory Benfield authored and GitHub committed 2023-10-23 19:00:13 +01:00
1 parent 1c20573514
commit 86d05fb79f
1 file changed
+9 -3
@@ -375,9 +375,17 @@ extension ByteBufferAllocator {
}
// MARK: - Conformances
#if compiler(>=5.11)
extension ByteBufferView: @retroactive ContiguousBytes {}
extension ByteBufferView: @retroactive DataProtocol {}
extension ByteBufferView: @retroactive MutableDataProtocol {}
#else
extension ByteBufferView: ContiguousBytes {}
extension ByteBufferView: DataProtocol {}
extension ByteBufferView: MutableDataProtocol {}
#endif
extension ByteBufferView: DataProtocol {
extension ByteBufferView {
public typealias Regions = CollectionOfOne<ByteBufferView>
public var regions: CollectionOfOne<ByteBufferView> {
@@ -385,8 +393,6 @@ extension ByteBufferView: DataProtocol {
}
}
extension ByteBufferView: MutableDataProtocol {}
// MARK: - Data
extension Data {