@@ -1230,13 +1230,14 @@ public func withUnsafeMutableBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
12301230
12311231/// ABI: Historical withUnsafeMutableBytes(of:_:) rethrows,
12321232/// expressed as "throws", which is ABI-compatible with "rethrows".
1233- @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1233+ // FIXME(TypedThrows): Uncomment @_spi and revert rethrows
1234+ //@_spi(SwiftStdlibLegacyABI) @available(swift, obsoleted: 1)
12341235@_silgen_name ( " $ss22withUnsafeMutableBytes2of_q_xz_q_SwKXEtKr0_lF " )
12351236@usableFromInline
12361237func __abi_se0413_withUnsafeMutableBytes< T, Result> (
12371238 of value: inout T ,
12381239 _ body: ( UnsafeMutableRawBufferPointer ) throws -> Result
1239- ) throws -> Result {
1240+ ) rethrows -> Result {
12401241 return try withUnsafeMutablePointer ( to: & value) {
12411242 return try body ( UnsafeMutableRawBufferPointer (
12421243 start: $0, count: MemoryLayout< T> . size) )
@@ -1297,13 +1298,14 @@ public func withUnsafeBytes<T: ~Copyable, E: Error, Result: ~Copyable>(
12971298
12981299/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
12991300/// expressed as "throws", which is ABI-compatible with "rethrows".
1300- @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1301+ // FIXME(TypedThrows): Uncomment @_spi and revert rethrows
1302+ //@_spi(SwiftStdlibLegacyABI) @available(swift, obsoleted: 1)
13011303@_silgen_name ( " $ss15withUnsafeBytes2of_q_xz_q_SWKXEtKr0_lF " )
13021304@usableFromInline
13031305func __abi_se0413_withUnsafeBytes< T, Result> (
13041306 of value: inout T ,
13051307 _ body: ( UnsafeRawBufferPointer ) throws -> Result
1306- ) throws -> Result {
1308+ ) rethrows -> Result {
13071309 return try withUnsafePointer ( to: & value) {
13081310 try body ( UnsafeRawBufferPointer ( start: $0, count: MemoryLayout< T> . size) )
13091311 }
@@ -1361,13 +1363,14 @@ public func withUnsafeBytes<
13611363
13621364/// ABI: Historical withUnsafeBytes(of:_:) rethrows,
13631365/// expressed as "throws", which is ABI-compatible with "rethrows".
1364- @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1366+ // FIXME(TypedThrows): Uncomment @_spi and revert rethrows
1367+ //@_spi(SwiftStdlibLegacyABI) @available(swift, obsoleted: 1)
13651368@_silgen_name ( " $ss15withUnsafeBytes2of_q_x_q_SWKXEtKr0_lF " )
13661369@usableFromInline
13671370func __abi_se0413_withUnsafeBytes< T, Result> (
13681371 of value: T ,
13691372 _ body: ( UnsafeRawBufferPointer ) throws -> Result
1370- ) throws -> Result {
1373+ ) rethrows -> Result {
13711374 let addr = UnsafeRawPointer ( Builtin . addressOfBorrow ( value) )
13721375 let buffer = UnsafeRawBufferPointer ( start: addr, count: MemoryLayout< T> . size)
13731376 return try body ( buffer)
0 commit comments