diff --git a/test/stdlib/ArrayBridge.swift.gyb b/test/stdlib/ArrayBridge.swift.gyb index 32a66279dbb..4d7009dea42 100644 --- a/test/stdlib/ArrayBridge.swift.gyb +++ b/test/stdlib/ArrayBridge.swift.gyb @@ -485,7 +485,7 @@ tests.test("rdar://problem/27905230") { } tests.test("verbatimBridged/Base/withUnsafeBufferPointer") { - // https://bugs.swift.org/browse/SR-14663 + // https://github.com/apple/swift/issues/57014 // This tests a bad precondition that was fixed in // https://github.com/apple/swift/pull/37960 guard #available(SwiftStdlib 5.5, *) else { return } @@ -504,7 +504,7 @@ tests.test("verbatimBridged/Base/withUnsafeBufferPointer") { } tests.test("verbatimBridged/AnyObject/withUnsafeBufferPointer") { - // https://bugs.swift.org/browse/SR-14663 + // https://github.com/apple/swift/issues/57014 // This tests a bad precondition that was fixed in // https://github.com/apple/swift/pull/37960 guard #available(SwiftStdlib 5.5, *) else { return } diff --git a/test/stdlib/Bundle.swift b/test/stdlib/Bundle.swift index dec5f9cd039..925ab2df000 100644 --- a/test/stdlib/Bundle.swift +++ b/test/stdlib/Bundle.swift @@ -12,7 +12,8 @@ BundleTests.test("Bundle.bundleForNilClass") { // Foundation implementation does. The patched version from // ObjCRuntimeGetImageNameFromClass did not. // - // SR-9188 + // https://github.com/apple/swift/issues/51679 + typealias BundleForClassFunc = @convention(c) (AnyObject, Selector, AnyObject?) -> Bundle diff --git a/test/stdlib/ErrorBridged.swift b/test/stdlib/ErrorBridged.swift index 5f16da87723..83d6f62bf5e 100644 --- a/test/stdlib/ErrorBridged.swift +++ b/test/stdlib/ErrorBridged.swift @@ -698,7 +698,7 @@ func conditionalCast(_ x: Any, to: T.Type) -> T? { return x as? T } -// SR-1562 +// https://github.com/apple/swift/issues/44171 ErrorBridgingTests.test("Error archetype identity") { let myError = NSError(domain: "myErrorDomain", code: 0, userInfo: [ "one" : 1 ]) @@ -723,7 +723,8 @@ ErrorBridgingTests.test("Error archetype identity") { === nsError) } -// SR-9389 +// https://github.com/apple/swift/issues/51855 + class ParentA: NSObject { @objc(ParentAError) enum Error: Int, Swift.Error { case failed @@ -794,7 +795,8 @@ ErrorBridgingTests.test("error-to-NSObject casts") { } } -// SR-7732: Casting CFError or NSError to Error results in a memory leak +// https://github.com/apple/swift-corelibs-foundation/issues/3701 +// Casting 'CFError' or 'NSError' to 'Error' results in a memory leak ErrorBridgingTests.test("NSError-to-Error casts") { func should_not_leak_nserror() { let something: Any? = NSError(domain: "Foo", code: 1) @@ -821,11 +823,13 @@ ErrorBridgingTests.test("CFError-to-Error casts") { } } +// https://github.com/apple/swift/issues/51697 + enum MyError: Error { case someThing } -ErrorBridgingTests.test("SR-9207 crash in failed cast to NSError") { +ErrorBridgingTests.test("Crash in failed cast to 'NSError'") { if #available(SwiftStdlib 5.2, *) { let error = MyError.someThing @@ -837,7 +841,7 @@ ErrorBridgingTests.test("SR-9207 crash in failed cast to NSError") { } } -// SR-7652 +// https://github.com/apple/swift/issues/50193 enum SwiftError: Error, CustomStringConvertible { case something diff --git a/test/stdlib/ImplicitlyUnwrappedOptional.swift b/test/stdlib/ImplicitlyUnwrappedOptional.swift index 9f7a4ac8fec..d46386cff9f 100644 --- a/test/stdlib/ImplicitlyUnwrappedOptional.swift +++ b/test/stdlib/ImplicitlyUnwrappedOptional.swift @@ -67,7 +67,7 @@ ImplicitlyUnwrappedOptionalTests.test("preferOptional") { let j: Int = 1 if i != j {} // we should choose != for Optionals rather than forcing i if i == j {} // we should choose == for Optionals rather than forcing i - // FIXME: https://bugs.swift.org/browse/SR-6988 + // FIXME: https://github.com/apple/swift/issues/49536 // if i *^* j {} // we should choose *^* for Optionals rather than forcing i } diff --git a/test/stdlib/IntegerCompatibility.swift b/test/stdlib/IntegerCompatibility.swift index aeb63bbe647..feae999d898 100644 --- a/test/stdlib/IntegerCompatibility.swift +++ b/test/stdlib/IntegerCompatibility.swift @@ -48,11 +48,14 @@ func negativeShift(_ u8: UInt8) { _ = (u8 << -1) } -func sr5176(description: String = "unambiguous Int32.init(bitPattern:)") { +// https://github.com/apple/swift/issues/47752 +// Ambiguous 'Int32.init(bitPattern:)' +do { _ = Int32(bitPattern: 0) // should compile without ambiguity } -func sr6634(x: UnsafeBufferPointer) -> Int { +// https://github.com/apple/swift/issues/49183 +func f_49183(x: UnsafeBufferPointer) -> Int { return x.lazy.filter { $0 > 127 || $0 == 0 }.count // should be unambiguous } diff --git a/test/stdlib/Integers.swift.gyb b/test/stdlib/Integers.swift.gyb index fceb7d45811..2435ec11173 100644 --- a/test/stdlib/Integers.swift.gyb +++ b/test/stdlib/Integers.swift.gyb @@ -776,7 +776,7 @@ tests.test("Remainder/DividingBy0") { } tests.test("RemainderReportingOverflow/DividingByMinusOne") { - // Work around SR-5964. + // Work around https://github.com/apple/swift/issues/48523. func minusOne() -> T { return -1 as T } @@ -844,7 +844,7 @@ tests.test("Strideable") { expectEqual(dist(${u}Int.max, ${u}x), -10) // FIXME: The compiler spuriously flags these as overflowing: - // https://bugs.swift.org/browse/SR-5882 + // https://github.com/apple/swift/issues/48452 // expectEqual(${u}x.distance(to: ${u}Int.max), 10) % end diff --git a/test/stdlib/KVOKeyPaths.swift b/test/stdlib/KVOKeyPaths.swift index 26a410c60db..6360c3515c0 100644 --- a/test/stdlib/KVOKeyPaths.swift +++ b/test/stdlib/KVOKeyPaths.swift @@ -7,7 +7,8 @@ // REQUIRES: objc_interop -// SR-9838 Disable because it blocks PR testing. +// FIXME: https://github.com/apple/swift/issues/52252 +// Disable because it blocks PR testing. // UNSUPPORTED: CPU=i386 import Foundation diff --git a/test/stdlib/KeyPath.swift b/test/stdlib/KeyPath.swift index f8571f55671..734de6fc9d0 100644 --- a/test/stdlib/KeyPath.swift +++ b/test/stdlib/KeyPath.swift @@ -986,24 +986,24 @@ keyPath.test("key path literal closures") { expectEqual(3, variadicFn("a", "b", "c")) } -// SR-6096 +// https://github.com/apple/swift/issues/48651 -protocol Protocol6096 {} -struct Value6096 {} -extension Protocol6096 { +protocol P_48651 {} +struct S_48651 {} +extension P_48651 { var asString: String? { return self as? String } } -extension Value6096 where ValueType: Protocol6096 { +extension S_48651 where ValueType: P_48651 { func doSomething() { _ = \ValueType.asString?.endIndex } } -extension Int: Protocol6096 {} +extension Int: P_48651 {} keyPath.test("optional chaining component that needs generic instantiation") { - Value6096().doSomething() + S_48651().doSomething() } // Nested generics. diff --git a/test/stdlib/Mirror.swift b/test/stdlib/Mirror.swift index dce0af597e8..1f7a7dd37a2 100644 --- a/test/stdlib/Mirror.swift +++ b/test/stdlib/Mirror.swift @@ -589,8 +589,9 @@ func verifyWeakUnownedReflection verifyExistentialField(child: i.next()!, name: "unowned_unsafe_existential") expectNil(i.next()) - // The original bug report from SR-5289 crashed when the print() code - // attempted to reflect the contents of an unowned field. + // The original bug report from https://github.com/apple/swift/issues/47864 + // crashed when the print() code attempted to reflect the contents of an + // unowned field. // The tests above _should_ suffice to check this, but let's print everything // anyway just to be sure. for c in m.children { @@ -599,9 +600,10 @@ func verifyWeakUnownedReflection } #if _runtime(_ObjC) -// Related: SR-5289 reported a crash when using Mirror to inspect Swift -// class objects containing unowned pointers to Obj-C class objects. -mirrors.test("Weak and Unowned Obj-C refs in class (SR-5289)") { +// Related: https://github.com/apple/swift/issues/47864 reported a crash when +// using 'Mirror' to inspect Swift class objects containing unowned pointers +// to Obj-C class objects. +mirrors.test("Weak and Unowned Obj-C refs in class") { class SwiftClassWithWeakAndUnowned { var strong_class: WeakUnownedObjCClass var strong_existential: WeakUnownedTestsP1 & WeakUnownedTestsP2 diff --git a/test/stdlib/Optional.swift b/test/stdlib/Optional.swift index a5eacfac62a..2c128c9870c 100644 --- a/test/stdlib/Optional.swift +++ b/test/stdlib/Optional.swift @@ -305,12 +305,14 @@ OptionalTests.test("Casting Optional") { expectTrue(anyToAny(x, Optional>.self)!! === x) expectTrue(anyToAnyOrNil(ni, Int.self) == nil) - // Test for SR-459: Weakened optionals don't zero. + // https://github.com/apple/swift/issues/43076 + // Weakened optionals don't zero var t = LifetimeTracked(0) _ = anyToAny(Optional(t), CustomDebugStringConvertible.self) expectTrue(anyToAnyIs(Optional(t), CustomDebugStringConvertible.self)) - // Test for SR-912: Runtime exception casting an Any nil to an Optional. + // https://github.com/apple/swift/issues/43524 + // Runtime exception casting an 'Any' nil to an 'Optional' let oi: Int? = nil expectTrue(anyToAny(oi as Any, Optional.self) == nil) expectTrue(anyToAnyIs(oi as Any, Optional.self)) diff --git a/test/stdlib/PrintFloat.swift.gyb b/test/stdlib/PrintFloat.swift.gyb index 8d36cb04491..9dfa1dce7fd 100644 --- a/test/stdlib/PrintFloat.swift.gyb +++ b/test/stdlib/PrintFloat.swift.gyb @@ -768,8 +768,9 @@ PrintTests.test("Printable_Float") { // Second-worst case for shortness: expectDescription("7.038531e-26", Float("7.038531e-26")!) // Note: The above test computes the reference value from a - // string because `7.038531e-26 as Float` is broken: - // See https://bugs.swift.org/browse/SR-7124 + // string because `7.038531e-26 as Float` is broken. + // + // See https://github.com/apple/swift/issues/49672. // NaNs require special care in testing: // NaN is printed with additional detail to debugDescription, but not description diff --git a/test/stdlib/RawRepresentable-tricky-hashing.swift b/test/stdlib/RawRepresentable-tricky-hashing.swift index f953475ab2a..3e78a7b1383 100644 --- a/test/stdlib/RawRepresentable-tricky-hashing.swift +++ b/test/stdlib/RawRepresentable-tricky-hashing.swift @@ -74,7 +74,7 @@ suite.test("_rawHashValue forwarding") { // RawRepresentable types. Adding a custom hash(into:) implementation should // always be enough to customize hashing. // - // See https://bugs.swift.org/browse/SR-10734 + // See https://github.com/apple/swift/issues/53126. if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) { let r = CustomRawRepresentable(rawValue: 42)! diff --git a/test/stdlib/Runtime.swift.gyb b/test/stdlib/Runtime.swift.gyb index 496cdd0d67c..64379813785 100644 --- a/test/stdlib/Runtime.swift.gyb +++ b/test/stdlib/Runtime.swift.gyb @@ -673,7 +673,10 @@ Reflection.test("ObjectIdentifier/CustomDebugStringConvertible") { class C: Q1 & Codable { } Reflection.test("multiprotocolTypes") { - // [SR-8158]: Printing type(of: Codable & Protocol type ) EXC_BAD_ACCESS + // https://github.com/apple/swift/issues/50690 + // EXC_BAD_ACCESS when calling 'type(of:)' on protocol composition with + // 'Codable' + // // This use of String(reflecting:) exercises a previously incorrect cast in // NonFixedExistentialMetatypeBox::Container::getNumWitnessTables. let obj: Q1 & Codable = C() diff --git a/test/stdlib/RuntimeObjC.swift b/test/stdlib/RuntimeObjC.swift index 9265f8d99a0..dae244b0bf3 100644 --- a/test/stdlib/RuntimeObjC.swift +++ b/test/stdlib/RuntimeObjC.swift @@ -790,7 +790,7 @@ ObjCConformsToProtocolTestSuite.test("cast/metatype") { expectTrue(SomeSubclass.self is SomeObjCProto.Type) } -// SR-7357 +// https://github.com/apple/swift/issues/49905 extension Optional where Wrapped == NSData { private class Inner { diff --git a/test/stdlib/SIMD.swift b/test/stdlib/SIMD.swift index 428e81d2a64..30c1bffc091 100644 --- a/test/stdlib/SIMD.swift +++ b/test/stdlib/SIMD.swift @@ -78,7 +78,7 @@ SIMDCodableTests.test("roundTrip") { /* Apparently these fail to round trip not only for i386 but also on older macOS versions, so we'll disable them entirely for now. #if !arch(i386) - // https://bugs.swift.org/browse/SR-9759 + // https://github.com/apple/swift-corelibs-foundation/issues/3548 testRoundTrip(SIMD2.self) testRoundTrip(SIMD3.self) testRoundTrip(SIMD4.self) diff --git a/test/stdlib/Strideable.swift b/test/stdlib/Strideable.swift index f58bdc04895..1e847a2c1ef 100644 --- a/test/stdlib/Strideable.swift +++ b/test/stdlib/Strideable.swift @@ -210,7 +210,8 @@ StrideTestSuite.test("FloatingPointStride/rounding error") { // multiply-add operation `(1 as Float).addingProduct(0.9, 6)` gives the // result `6.3999996`. This is nonetheless the desired behavior because // avoiding error accumulation and intermediate rounding error wherever - // possible will produce better results more often than not (see SR-6377). + // possible will produce better results more often than not (see + // https://github.com/apple/swift/issues/48927). // // If checking of end bounds has been inadvertently modified such that we're // computing the distance from the penultimate element to the end (in this diff --git a/test/stdlib/StringAPI.swift b/test/stdlib/StringAPI.swift index 0a89f8b7a51..46f6326b9cb 100644 --- a/test/stdlib/StringAPI.swift +++ b/test/stdlib/StringAPI.swift @@ -364,8 +364,10 @@ StringTests.test("[String].joined() -> String") { } StringTests.test("UnicodeScalarView.Iterator.Lifetime") { - // Tests that String.UnicodeScalarView.Iterator is maintaining the lifetime of - // an underlying String buffer. https://bugs.swift.org/browse/SR-5401 + // https://github.com/apple/swift/issues/47975 + // + // Tests that 'String.UnicodeScalarView.Iterator' is maintaining the lifetime + // of an underlying 'String' buffer. // // WARNING: it is very easy to write this test so it produces false negatives // (i.e. passes even when the code is broken). The array, for example, seems diff --git a/test/stdlib/StringAPICString.swift b/test/stdlib/StringAPICString.swift index 1563289cb8d..fa8f005ab37 100644 --- a/test/stdlib/StringAPICString.swift +++ b/test/stdlib/StringAPICString.swift @@ -241,7 +241,7 @@ CStringTests.test("String.cString.with.Array.UInt8.input") { } // no need to test every case; that is covered in other tests expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(cString:) must be null-terminated" ) _ = String(cString: [] as [UInt8]) @@ -265,7 +265,7 @@ CStringTests.test("String.cString.with.Array.CChar.input") { } // no need to test every case; that is covered in other tests expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(cString:) must be null-terminated" ) _ = String(cString: [] as [CChar]) @@ -293,7 +293,7 @@ CStringTests.test("String.cString.with.inout.UInt8.conversion") { expectTrue(str.isEmpty) c = 100 expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(cString:) must be null-terminated" ) str = String(cString: &c) @@ -307,7 +307,7 @@ CStringTests.test("String.cString.with.inout.CChar.conversion") { expectTrue(str.isEmpty) c = 100 expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(cString:) must be null-terminated" ) str = String(cString: &c) @@ -332,7 +332,7 @@ CStringTests.test("String.validatingUTF8.with.Array.input") { } // no need to test every case; that is covered in other tests expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(validatingUTF8:) must be null-terminated" ) _ = String(validatingUTF8: []) @@ -363,7 +363,7 @@ CStringTests.test("String.validatingUTF8.with.inout.conversion") { expectEqual(str?.isEmpty, true) c = 100 expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(validatingUTF8:) must be null-terminated" ) str = String(validatingUTF8: &c) @@ -389,7 +389,7 @@ CStringTests.test("String.decodeCString.with.Array.input") { } // no need to test every case; that is covered in other tests expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of decodeCString(_:as:repairingInvalidCodeUnits:) must be null-terminated" ) _ = String.decodeCString([], as: Unicode.UTF8.self) @@ -427,7 +427,7 @@ CStringTests.test("String.decodeCString.with.inout.conversion") { expectEqual(result?.repairsMade, false) c = 100 expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of decodeCString(_:as:repairingInvalidCodeUnits:) must be null-terminated" ) result = String.decodeCString(&c, as: Unicode.UTF8.self) @@ -451,7 +451,7 @@ CStringTests.test("String.init.decodingCString.with.Array.input") { } // no need to test every case; that is covered in other tests expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of decodeCString(_:as:repairingInvalidCodeUnits:) must be null-terminated" ) _ = String(decodingCString: [], as: Unicode.UTF8.self) @@ -479,7 +479,7 @@ CStringTests.test("String.init.decodingCString.with.inout.conversion") { expectEqual(str.isEmpty, true) c = 100 expectCrashLater( - // Workaround for https://bugs.swift.org/browse/SR-16103 (rdar://91365967) + // Workaround for https://github.com/apple/swift/issues/58362 (rdar://91365967) // withMessage: "input of String.init(decodingCString:as:) must be null-terminated" ) str = String(decodingCString: &c, as: Unicode.UTF8.self) diff --git a/test/stdlib/StringBridge.swift b/test/stdlib/StringBridge.swift index ba19f971580..5ce985e69fa 100644 --- a/test/stdlib/StringBridge.swift +++ b/test/stdlib/StringBridge.swift @@ -40,7 +40,7 @@ StringBridgeTests.test("Tagged NSString") { expectCocoa(bigBs) expectCocoa(bigQs) -#if false // TODO(SR-7594): re-enable +#if false // FIXME: Re-enable (https://github.com/apple/swift/issues/50136) let littleAsNSString = ("aa" as NSString) var littleAs = littleAsNSString as String diff --git a/test/stdlib/StringCreate.swift b/test/stdlib/StringCreate.swift index 5ab1ad20ea1..dc8cd8124f5 100644 --- a/test/stdlib/StringCreate.swift +++ b/test/stdlib/StringCreate.swift @@ -40,7 +40,8 @@ StringCreateTests.test("String(decoding:as:)") { validateDecodingAs(simpleString.rawValue) } - // Corner-case: UBP with null pointer (https://bugs.swift.org/browse/SR-9869) + // https://github.com/apple/swift/issues/52275 + // Corner-case: UBP with null pointer. expectEqual( "", String(decoding: UnsafeBufferPointer(_empty: ()), as: UTF8.self)) expectEqual( diff --git a/test/stdlib/StringSwitch.swift b/test/stdlib/StringSwitch.swift index 7b071a0ff9b..86f82516a1c 100644 --- a/test/stdlib/StringSwitch.swift +++ b/test/stdlib/StringSwitch.swift @@ -31,7 +31,7 @@ func switchOver( ) -> Character { let (first, second) = ("first", "second") - // TODO(SR-12457): Enable + // FIXME: Enable (https://github.com/apple/swift/issues/54896) #if true fatalError() #else @@ -65,7 +65,7 @@ StringSwitchTests.test("switch") { expectEqual("B", switchOver(second)) expectEqual("X", switchOver(foo)) - // TODO(SR-12457): Enable + // FIXME: Enable (https://github.com/apple/swift/issues/54896) #if true #else expectEqual("A", switchOver(first, first)) diff --git a/test/stdlib/UnsafePointerDiagnostics.swift b/test/stdlib/UnsafePointerDiagnostics.swift index 52c0b226d2e..068642bdc95 100644 --- a/test/stdlib/UnsafePointerDiagnostics.swift +++ b/test/stdlib/UnsafePointerDiagnostics.swift @@ -125,8 +125,8 @@ func unsafeRawBufferPointerConversions( _ = UnsafeRawBufferPointer(start: orp, count: 1) } - -struct SR9800 { +// https://github.com/apple/swift/issues/52224 +struct S_52224 { func foo(_: UnsafePointer) {} func foo(_: UnsafePointer) {} diff --git a/test/stdlib/VarArgs.swift b/test/stdlib/VarArgs.swift index 9e5c36c52d7..139f66c8bfb 100644 --- a/test/stdlib/VarArgs.swift +++ b/test/stdlib/VarArgs.swift @@ -3,10 +3,10 @@ import Swift +// FIXME: https://github.com/apple/swift/issues/57444 // Work around the inability for static-library based Swift runtime builds to // directly link against Darwin.swiftmodule by using a benign dependency on // StdlibUnittest. -// https://bugs.swift.org/browse/SR-15118 import StdlibUnittest runAllTests() diff --git a/test/stdlib/WeakMirror.swift b/test/stdlib/WeakMirror.swift index 32ac995cb47..02ad4ab150d 100644 --- a/test/stdlib/WeakMirror.swift +++ b/test/stdlib/WeakMirror.swift @@ -102,8 +102,9 @@ mirrors.test("struct/StructHasNativeWeakReference") { print(extractedChild) } -// SR-8878: Using Mirror to access a weak reference results in object -// being retained indefinitely +// https://github.com/apple/swift/issues/51384 +// Using 'Mirror' to access a weak reference results in object being +// retained indefinitely mirrors.test("class/NativeSwiftClassHasNativeWeakReferenceNoLeak") { weak var verifier: AnyObject? do { diff --git a/test/stdlib/conditional_collections.swift b/test/stdlib/conditional_collections.swift index af2278c4f16..c64bfe02501 100644 --- a/test/stdlib/conditional_collections.swift +++ b/test/stdlib/conditional_collections.swift @@ -25,8 +25,8 @@ extension A: BidirectionalCollection where C: BidirectionalCollection { func index(before i: C.Index) -> C.Index { return c.index(before: i) } } -// SR-8022 -func sr8022() { +// https://github.com/apple/swift/issues/50555 +do { var c = A(c: X()) _ = c.popLast() _ = c.removeLast() @@ -34,5 +34,3 @@ func sr8022() { _ = c.dropLast(2) _ = c.suffix(2) } - -sr8022() diff --git a/test/stdlib/tgmath.swift.gyb b/test/stdlib/tgmath.swift.gyb index f282d2dc58e..ecbdb97337e 100644 --- a/test/stdlib/tgmath.swift.gyb +++ b/test/stdlib/tgmath.swift.gyb @@ -162,8 +162,9 @@ internal extension TGMath { expectEqual((0.625, 2), Self._frexp(2.5)) expectEqual(1, Self._ilogb(2.5)) #if os(Linux) && arch(x86_64) + // FIXME: https://github.com/apple/swift/issues/49782 // double-precision remquo is broken in the glibc in 14.04. Disable this - // test for all Linux in the short-term to un-FAIL the build. SR-7234. + // test for all Linux in the short-term to un-FAIL the build. if Self.significandBitCount != 52 { expectEqual(-0.25, Self._remquo(16, 0.625).0) expectEqual(2, Self._remquo(16, 0.625).1 & 7)