Skip to content

Commit 448c411

Browse files
Merge pull request #61289 from AnthonyLatsis/migrate-stdlib-to-gh-issues
Gardening: Migrate stdlib sources to GH issues
2 parents c55218d + c731089 commit 448c411

19 files changed

+50
-46
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,10 +1916,11 @@ function(add_swift_target_library name)
19161916
list(APPEND swiftlib_swift_compile_flags_all
19171917
${SWIFTLIB_SWIFT_COMPILE_FLAGS_LINUX})
19181918
elseif(${sdk} STREQUAL WINDOWS)
1919-
# FIXME(SR2005) static and shared are not mutually exclusive; however
1920-
# since we do a single build of the sources, this doesn't work for
1921-
# building both simultaneously. Effectively, only shared builds are
1922-
# supported on windows currently.
1919+
# FIXME: https://github.com/apple/swift/issues/44614
1920+
# static and shared are not mutually exclusive; however since we do a
1921+
# single build of the sources, this doesn't work for building both
1922+
# simultaneously. Effectively, only shared builds are supported on
1923+
# windows currently.
19231924
if(SWIFTLIB_SHARED)
19241925
list(APPEND swiftlib_swift_compile_flags_all -D_WINDLL)
19251926
if(SWIFTLIB_IS_STDLIB_CORE)

stdlib/public/SwiftShims/swift/shims/RefCount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ class HeapObjectSideTableEntry {
13261326
public:
13271327
HeapObjectSideTableEntry(HeapObject *newObject)
13281328
: object(newObject),
1329-
#if __arm__ || __powerpc__ // https://bugs.swift.org/browse/SR-5846
1329+
#if __arm__ || __powerpc__ // https://github.com/apple/swift/issues/48416
13301330
refCounts(SideTableRefCounts::Initialized)
13311331
#else
13321332
refCounts()

stdlib/public/core/ArrayShared.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extension Collection {
127127
}
128128

129129
extension _ArrayBufferProtocol {
130-
@inlinable // FIXME @useableFromInline https://bugs.swift.org/browse/SR-7588
130+
@inlinable // FIXME: @useableFromInline (https://github.com/apple/swift/issues/50130).
131131
@inline(never)
132132
internal mutating func _arrayOutOfPlaceReplace<C: Collection>(
133133
_ bounds: Range<Int>,

stdlib/public/core/CTypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public typealias CLongDouble = Double
9595
#endif
9696
#elseif os(Android)
9797
// On Android, long double is Float128 for AAPCS64, which we don't have yet in
98-
// Swift (SR-9072); and Double for ARMv7.
98+
// Swift (https://github.com/apple/swift/issues/51573); and Double for ARMv7.
9999
#if arch(arm)
100100
public typealias CLongDouble = Double
101101
#endif

stdlib/public/core/CompilerProtocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ extension RawRepresentable where RawValue: Hashable, Self: Hashable {
210210
// so code that used to work in 5.0 remains working whether or not the
211211
// original definition was inlined.
212212
//
213-
// See https://bugs.swift.org/browse/SR-10734
213+
// See https://github.com/apple/swift/issues/53126.
214214
var hasher = Hasher(_seed: seed)
215215
self.hash(into: &hasher)
216216
return hasher._finalize()

stdlib/public/core/Filter.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ public typealias LazyFilterCollection<T: Collection> = LazyFilterSequence<T>
117117
extension LazyFilterCollection: Collection {
118118
public typealias SubSequence = LazyFilterCollection<Base.SubSequence>
119119

120+
// https://github.com/apple/swift/issues/46747
120121
// Any estimate of the number of elements that pass `_predicate` requires
121122
// iterating the collection and evaluating each element, which can be costly,
122123
// is unexpected, and usually doesn't pay for itself in saving time through
123-
// preventing intermediate reallocations. (SR-4164)
124+
// preventing intermediate reallocations.
124125
@inlinable // lazy-performance
125126
public var underestimatedCount: Int { return 0 }
126127

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ extension ${Self}: _ExpressibleByBuiltinFloatLiteral {
952952
% if bits == builtinFloatLiteralBits:
953953
self = ${Self}(value)
954954
% elif bits < builtinFloatLiteralBits:
955-
// FIXME: This can result in double rounding errors (SR-7124).
955+
// FIXME: This can result in double rounding errors (https://github.com/apple/swift/issues/49672).
956956
self = ${Self}(Builtin.fptrunc_FPIEEE${builtinFloatLiteralBits}_FPIEEE${bits}(value))
957957
% else:
958958
// FIXME: This is actually losing precision <rdar://problem/14073102>.

stdlib/public/core/HashTable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ extension _HashTable {
107107
) -> Int {
108108
// We generate a new hash seed whenever a new hash table is allocated and
109109
// whenever an existing table is resized, so that we avoid certain copy
110-
// operations becoming quadratic. (For background details, see
111-
// https://bugs.swift.org/browse/SR-3268)
110+
// operations becoming quadratic. For background details, see
111+
// https://github.com/apple/swift/issues/45856.
112112
//
113113
// Note that we do reuse the existing seed when making copy-on-write copies
114114
// so that we avoid breaking value semantics.

stdlib/public/core/Mirror.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ public struct Mirror {
482482
displayStyle: DisplayStyle? = nil,
483483
ancestorRepresentation: AncestorRepresentation = .generated
484484
) where C.Element == Child {
485-
// Can't use Builtin.unreachable() due to
486-
// https://bugs.swift.org/browse/SR-15300
485+
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
487486
self.init(reflecting: subject)
488487
}
489488
public init<Subject, C: Collection>(
@@ -492,8 +491,7 @@ public struct Mirror {
492491
displayStyle: DisplayStyle? = nil,
493492
ancestorRepresentation: AncestorRepresentation = .generated
494493
) {
495-
// Can't use Builtin.unreachable() due to
496-
// https://bugs.swift.org/browse/SR-15300
494+
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
497495
self.init(reflecting: subject)
498496
}
499497
public init<Subject>(
@@ -502,8 +500,7 @@ public struct Mirror {
502500
displayStyle: DisplayStyle? = nil,
503501
ancestorRepresentation: AncestorRepresentation = .generated
504502
) {
505-
// Can't use Builtin.unreachable() due to
506-
// https://bugs.swift.org/browse/SR-15300
503+
// FIXME: Can't use Builtin.unreachable() due to https://github.com/apple/swift/issues/57622.
507504
self.init(reflecting: subject)
508505
}
509506
public let subjectType: Any.Type

stdlib/public/core/SliceBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ internal struct _SliceBuffer<Element>
211211
//
212212
// return _hasNativeBuffer && isUniquelyReferenced()
213213
//
214-
// SR-6437
214+
// https://github.com/apple/swift/issues/48987
215215
if !_hasNativeBuffer {
216216
return false
217217
}

0 commit comments

Comments
 (0)