Skip to content

Commit 9aece73

Browse files
committed
stdlib: add migration aids for SetAlgebra API
rdar://problem/26227732
1 parent 17036b4 commit 9aece73

File tree

2 files changed

+1598
-823
lines changed

2 files changed

+1598
-823
lines changed

stdlib/public/core/SetAlgebra.swift

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,3 +549,60 @@ extension SetAlgebra {
549549
@available(*, unavailable, renamed: "SetAlgebra")
550550
public typealias SetAlgebraType = SetAlgebra
551551

552+
extension SetAlgebra {
553+
@available(*, unavailable, renamed: "intersection")
554+
public func intersect(_ other: Self) -> Self {
555+
Builtin.unreachable()
556+
}
557+
558+
@available(*, unavailable, renamed: "symmetricDifference")
559+
public func exclusiveOr(_ other: Self) -> Self {
560+
Builtin.unreachable()
561+
}
562+
563+
@available(*, unavailable, renamed: "formUnion")
564+
public mutating func unionInPlace(_ other: Self) {
565+
Builtin.unreachable()
566+
}
567+
568+
@available(*, unavailable, renamed: "formIntersection")
569+
public mutating func intersectInPlace(_ other: Self) {
570+
Builtin.unreachable()
571+
}
572+
573+
@available(*, unavailable, renamed: "formSymmetricDifference")
574+
public mutating func exclusiveOrInPlace(_ other: Self) {
575+
Builtin.unreachable()
576+
}
577+
578+
@available(*, unavailable, renamed: "isSubset(of:)")
579+
public func isSubsetOf(_ other: Self) -> Bool {
580+
Builtin.unreachable()
581+
}
582+
583+
@available(*, unavailable, renamed: "isDisjoint(with:)")
584+
public func isDisjointWith(_ other: Self) -> Bool {
585+
Builtin.unreachable()
586+
}
587+
588+
@available(*, unavailable, renamed: "isSuperset(of:)")
589+
public func isSupersetOf(_ other: Self) -> Bool {
590+
Builtin.unreachable()
591+
}
592+
593+
@available(*, unavailable, renamed: "subtract")
594+
public mutating func subtractInPlace(_ other: Self) {
595+
Builtin.unreachable()
596+
}
597+
598+
@available(*, unavailable, renamed: "isStrictSuperset(of:)")
599+
public func isStrictSupersetOf(_ other: Self) -> Bool {
600+
Builtin.unreachable()
601+
}
602+
603+
@available(*, unavailable, renamed: "isStrictSubset(of:)")
604+
public func isStrictSubsetOf(_ other: Self) -> Bool {
605+
Builtin.unreachable()
606+
}
607+
}
608+

0 commit comments

Comments
 (0)