mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[temporary] disable small-string support
This commit is contained in:
@@ -89,7 +89,6 @@ extension String {
|
||||
/// print(String(s1.utf8.prefix(15))!)
|
||||
/// // Prints "They call me 'B"
|
||||
@frozen
|
||||
@_addressableForDependencies
|
||||
public struct UTF8View: Sendable {
|
||||
@usableFromInline
|
||||
internal var _guts: _StringGuts
|
||||
@@ -344,6 +343,7 @@ extension String.UTF8View {
|
||||
let a = Builtin.addressOfBorrow(self)
|
||||
let address = unsafe UnsafePointer<UTF8.CodeUnit>(a)
|
||||
let span = unsafe Span(_unsafeStart: address, count: count)
|
||||
fatalError("Span over the small string form is not supported yet.")
|
||||
return unsafe _overrideLifetime(span, borrowing: self)
|
||||
}
|
||||
_precondition(_guts.isFastUTF8)
|
||||
|
||||
Reference in New Issue
Block a user