[temporary] disable small-string support

This commit is contained in:
Guillaume Lessard
2025-03-20 08:29:21 -07:00
parent 9842a79dc6
commit ea44ff9fc9
3 changed files with 7 additions and 3 deletions

View File

@@ -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)