Skip to content

Commit 422fb5c

Browse files
committed
Move String conformance to ConcurrentValue out-of-line.
1 parent f81621f commit 422fb5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/core/String.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ internal func unimplemented_utf8_32bit(
349349
/// [scalars]: http://www.unicode.org/glossary/#unicode_scalar_value
350350
/// [equivalence]: http://www.unicode.org/glossary/#canonical_equivalent
351351
@frozen
352-
public struct String: ConcurrentValue {
352+
public struct String {
353353
public // @SPI(Foundation)
354354
var _guts: _StringGuts
355355

@@ -383,6 +383,8 @@ public struct String: ConcurrentValue {
383383
public init() { self.init(_StringGuts()) }
384384
}
385385

386+
extension String: ConcurrentValue { }
387+
386388
extension String {
387389
#if !INTERNAL_CHECKS_ENABLED
388390
@inlinable @inline(__always) internal func _invariantCheck() {}

0 commit comments

Comments
 (0)