Build Information
Successful build of swift-idna, reference main (7f00c3), with Swift 6.3 for macOS (SPM) on 6 Nov 2026 09:58:02 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-dns/swift-idna.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-dns/swift-idna
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7f00c31 Update swift-vectorization (no C++ needed + more platforms supported) (#58)
Cloned https://github.com/swift-dns/swift-idna.git
Revision (git rev-parse @):
7f00c31ed4d80873048a41393ed8fe59620057fa
SUCCESS checkout https://github.com/swift-dns/swift-idna.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/swift-dns/swift-idna.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64
Building for debugging...
[0/12] Write sources
[5/12] Write swift-version-69A768CDF2A0BEE1.txt
[6/40] Compiling cswift_idna_mapping_table.c
[7/40] Compiling cswift_idna_test_v2_cases.c
[8/40] Compiling cswift_idna_nfc_table.c
[9/40] Compiling cswift_idna_mark_table.c
[10/40] Compiling CVectorizationOps CVectorizationOps.c
[12/40] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[13/40] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[14/40] Compiling InternalCollectionsUtilities MutableRef.swift
[15/40] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[16/40] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[17/40] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[18/43] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[19/43] Compiling InternalCollectionsUtilities UInt+reversed.swift
[20/43] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[21/43] Compiling InternalCollectionsUtilities Span+Extras.swift
[22/43] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[23/43] Compiling InternalCollectionsUtilities String+Padding.swift
[24/43] Emitting module InternalCollectionsUtilities
[25/43] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[26/43] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[27/43] Compiling InternalCollectionsUtilities Debugging.swift
[28/43] Compiling InternalCollectionsUtilities Descriptions.swift
[29/43] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[30/43] Compiling InternalCollectionsUtilities Integer rank.swift
[31/55] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[32/55] Compiling InternalCollectionsUtilities _SortedCollection.swift
[33/55] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[34/55] Compiling Vectorization SIMDFloat.swift
[35/55] Compiling Vectorization SIMDInt16.swift
[36/55] Compiling Vectorization SIMDDouble.swift
[36/55] Compiling cswift_idna_nfc_test_cases.c
[38/55] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[39/55] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[40/55] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[41/55] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[42/55] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[43/55] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[44/59] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[45/59] Emitting module SpanPreview
[46/59] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[47/59] Compiling SpanPreview InputSpan.swift
[48/144] Compiling BasicContainers RigidDictionary.swift
[49/144] Compiling BasicContainers RigidSet+Consumption.swift
[50/144] Compiling BasicContainers RigidSet+Debugging.swift
[51/144] Compiling BasicContainers RigidSet+Deprecated.swift
[52/144] Compiling BasicContainers RigidSet+Equatable.swift
[53/144] Compiling BasicContainers RigidSet+Hashable.swift
[54/144] Compiling BasicContainers RigidSet+Index.swift
[55/144] Compiling BasicContainers RigidSet+Initializers.swift
[56/144] Compiling BasicContainers RigidSet+Insertions.swift
[57/153] Compiling BasicContainers UniqueSet+Hashable.swift
[58/153] Compiling BasicContainers UniqueSet+Index.swift
[59/153] Compiling BasicContainers UniqueSet+Initializers.swift
[60/153] Compiling BasicContainers UniqueSet+Insertions.swift
[61/153] Compiling BasicContainers UniqueSet+Iterable.swift
[62/153] Compiling BasicContainers UniqueSet+Lookup.swift
[63/153] Compiling BasicContainers UniqueSet+Removals.swift
[64/153] Compiling BasicContainers UniqueSet+Resizing.swift
[65/153] Compiling BasicContainers UniqueSet.swift
[66/153] Compiling BasicContainers UniqueArray.swift
[67/153] Compiling BasicContainers UniqueDictionary+Consumption.swift
[68/153] Compiling BasicContainers UniqueDictionary+Debugging.swift
[69/153] Compiling BasicContainers UniqueDictionary+Equatable.swift
[70/153] Compiling BasicContainers UniqueDictionary+Hashable.swift
[71/153] Compiling BasicContainers UniqueDictionary+Index.swift
[72/153] Compiling BasicContainers UniqueDictionary+Indices.swift
[73/153] Compiling BasicContainers UniqueDictionary+Initializers.swift
[74/153] Compiling BasicContainers UniqueDictionary+Insertions.swift
[75/153] Compiling BasicContainers UniqueDictionary+Keys.swift
[76/153] Compiling BasicContainers UniqueDictionary+Lookup.swift
[77/153] Compiling BasicContainers UniqueDictionary+Removals.swift
[78/153] Compiling BasicContainers UniqueDictionary+Resizing.swift
[79/153] Compiling BasicContainers UniqueDictionary.swift
[80/153] Compiling BasicContainers UniqueSet+Consumption.swift
[81/153] Compiling BasicContainers UniqueSet+Debugging.swift
[82/153] Compiling BasicContainers UniqueSet+Deprecated.swift
[83/153] Compiling BasicContainers UniqueSet+Equatable.swift
[84/153] Compiling BasicContainers UniqueArray+Descriptions.swift
[85/153] Compiling BasicContainers UniqueArray+Equatable.swift
[86/153] Compiling BasicContainers UniqueArray+Experimental.swift
[87/153] Compiling BasicContainers UniqueArray+Hashable.swift
[88/153] Compiling BasicContainers UniqueArray+Initializers.swift
[89/153] Compiling BasicContainers UniqueArray+Insertions.swift
[90/153] Compiling BasicContainers UniqueArray+Iterable.swift
[91/153] Compiling BasicContainers UniqueArray+Removals.swift
[92/153] Compiling BasicContainers UniqueArray+Replacements.swift
[93/153] Compiling BasicContainers RigidDictionary+Hashable.swift
[94/153] Compiling BasicContainers RigidDictionary+Index.swift
[95/153] Compiling BasicContainers RigidDictionary+Indices.swift
[96/153] Compiling BasicContainers RigidDictionary+Initializers.swift
[97/153] Compiling BasicContainers RigidDictionary+Insertions.swift
[98/153] Compiling BasicContainers RigidDictionary+Keys.swift
[99/153] Compiling BasicContainers RigidDictionary+Lookup.swift
[100/153] Compiling BasicContainers RigidDictionary+Removals.swift
[101/153] Compiling BasicContainers RigidDictionary+Resizing.swift
[102/153] Compiling BasicContainers RigidSet+Iterable.swift
[103/153] Compiling BasicContainers RigidSet+Lookup.swift
[104/153] Compiling BasicContainers RigidSet+Removals.swift
[105/153] Compiling BasicContainers RigidSet+Resizing.swift
[106/153] Compiling BasicContainers RigidSet.swift
[107/153] Compiling BasicContainers UniqueArray+Append.swift
[108/153] Compiling BasicContainers UniqueArray+Consumption.swift
[109/153] Compiling BasicContainers UniqueArray+ContainerOperations.swift
[110/153] Compiling BasicContainers UniqueArray+Deprecated.swift
[111/153] Compiling BasicContainers RigidArray+Hashable.swift
[112/153] Compiling BasicContainers RigidArray+Initializers.swift
[113/153] Compiling BasicContainers RigidArray+Insertions.swift
[114/153] Compiling BasicContainers RigidArray+Iterable.swift
[115/153] Compiling BasicContainers RigidArray+Removals.swift
[116/153] Compiling BasicContainers RigidArray+Replacements.swift
[117/153] Compiling BasicContainers RigidArray.swift
[118/153] Compiling BasicContainers RigidDictionary+Consumption.swift
[119/153] Compiling BasicContainers RigidDictionary+Debugging.swift
[120/153] Compiling BasicContainers RigidDictionary+Equatable.swift
[121/153] Compiling Vectorization SIMDUInt64.swift
[122/153] Compiling Vectorization SIMDUInt32.swift
[123/153] Compiling Vectorization SIMDUInt8.swift
[124/154] Emitting module BasicContainers
[125/154] Compiling Vectorization SIMDInt8.swift
[126/154] Compiling Vectorization SIMDInt64.swift
[127/154] Compiling Vectorization SIMDUInt16.swift
[128/154] Compiling Vectorization SIMDTarget.swift
[129/154] Compiling BasicContainers _HTable+Sizing.swift
[130/154] Compiling BasicContainers _HTable.swift
[131/154] Compiling BasicContainers RigidArray+Append.swift
[132/154] Compiling BasicContainers RigidArray+Consumption.swift
[133/154] Compiling BasicContainers RigidArray+ContainerOperations.swift
[134/154] Compiling BasicContainers RigidArray+Deprecated.swift
[135/154] Compiling BasicContainers RigidArray+Descriptions.swift
[136/154] Compiling BasicContainers RigidArray+Equatable.swift
[137/154] Compiling BasicContainers RigidArray+Experimental.swift
[138/154] Compiling BasicContainers RigidArray+Formatter.swift
[139/154] Compiling BasicContainers _HTable+Bitmap.swift
[140/154] Compiling BasicContainers _HTable+Bucket.swift
[141/154] Compiling BasicContainers _HTable+Consumption.swift
[142/154] Compiling BasicContainers _HTable+Debug.swift
[143/154] Compiling BasicContainers _HTable+Deprecated.swift
[144/154] Compiling BasicContainers _HTable+Find.swift
[145/154] Compiling BasicContainers _HTable+Insert.swift
[146/154] Compiling BasicContainers _HTable+Iteration.swift
[147/154] Compiling BasicContainers _HTable+Removal.swift
[148/154] Compiling BasicContainers _HTable+Resizing.swift
[149/154] Compiling Vectorization SIMDInt32.swift
[154/154] Emitting module Vectorization
[155/179] Compiling SwiftIDNA +Array.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+Array.swift:7:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
5 | package init(copying span: Span<Element>) {
6 | unsafe self.init(unsafeUninitializedCapacity: span.count) { buffer, initializedCount in
7 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
9 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+OutputSpan.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let usedCapacity = self.count
9 | unsafe self.withUnsafeMutableBufferPointer { buffer, initializedCount in
10 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | let target = unsafe UnsafeMutableRawPointer(
12 | buffer.baseAddress.unsafelyUnwrapped
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[156/179] Compiling SwiftIDNA +BinaryInteger.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+Array.swift:7:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
5 | package init(copying span: Span<Element>) {
6 | unsafe self.init(unsafeUninitializedCapacity: span.count) { buffer, initializedCount in
7 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
9 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+OutputSpan.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let usedCapacity = self.count
9 | unsafe self.withUnsafeMutableBufferPointer { buffer, initializedCount in
10 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | let target = unsafe UnsafeMutableRawPointer(
12 | buffer.baseAddress.unsafelyUnwrapped
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[157/179] Compiling SwiftIDNA +OutputSpan.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+Array.swift:7:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
5 | package init(copying span: Span<Element>) {
6 | unsafe self.init(unsafeUninitializedCapacity: span.count) { buffer, initializedCount in
7 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
9 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+OutputSpan.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let usedCapacity = self.count
9 | unsafe self.withUnsafeMutableBufferPointer { buffer, initializedCount in
10 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | let target = unsafe UnsafeMutableRawPointer(
12 | buffer.baseAddress.unsafelyUnwrapped
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[158/181] Compiling SwiftIDNA +Span.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | self.init(copying: utf8Span)
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | span.withUnsafeBytes { spanPtr in
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:11:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
11 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
13 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:21:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
19 | unsafeUninitializedCapacity: span.count
20 | ) { buffer, initializedCount in
21 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
22 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
23 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:39:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
37 | self.init(copying: utf8Span)
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
40 | span.withUnsafeBytes { spanPtr in
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:40:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
40 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
42 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:50:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafeUninitializedCapacity: span.count
49 | ) { buffer, initializedCount in
50 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
52 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:68:29: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
66 | /// Fast path: Currently always the case for non-Darwin.
67 | /// On Darwin, always the case unless for some objc-bridged strings.
68 | if let fastResult = self.utf8.withContiguousStorageIfAvailable({ buffer in
| | | `- note: argument #0 in call to instance method 'withContiguousStorageIfAvailable' has unsafe type '(UnsafeBufferPointer<String.UTF8View.Element>) throws -> Result<T, E>' (aka '(UnsafeBufferPointer<UInt8>) throws -> Result<T, E>')
| | `- note: reference to instance method 'withContiguousStorageIfAvailable' involves unsafe type 'UnsafeBufferPointer<String.UTF8View.Element>' (aka 'UnsafeBufferPointer<UInt8>')
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | Result(catching: { () throws(E) -> T in
70 | try body(unsafe buffer.span)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:112:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
110 | ) rethrows {
111 | if #available(SwiftStdlib 5.3, *) {
112 | try self.init(unsafeUninitializedCapacity: capacity) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
113 | unsafe try initializer(buffer)
114 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[159/181] Compiling SwiftIDNA +String.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | self.init(copying: utf8Span)
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | span.withUnsafeBytes { spanPtr in
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:11:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
11 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
13 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:21:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
19 | unsafeUninitializedCapacity: span.count
20 | ) { buffer, initializedCount in
21 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
22 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
23 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:39:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
37 | self.init(copying: utf8Span)
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
40 | span.withUnsafeBytes { spanPtr in
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:40:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
40 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
42 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:50:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafeUninitializedCapacity: span.count
49 | ) { buffer, initializedCount in
50 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
52 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:68:29: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
66 | /// Fast path: Currently always the case for non-Darwin.
67 | /// On Darwin, always the case unless for some objc-bridged strings.
68 | if let fastResult = self.utf8.withContiguousStorageIfAvailable({ buffer in
| | | `- note: argument #0 in call to instance method 'withContiguousStorageIfAvailable' has unsafe type '(UnsafeBufferPointer<String.UTF8View.Element>) throws -> Result<T, E>' (aka '(UnsafeBufferPointer<UInt8>) throws -> Result<T, E>')
| | `- note: reference to instance method 'withContiguousStorageIfAvailable' involves unsafe type 'UnsafeBufferPointer<String.UTF8View.Element>' (aka 'UnsafeBufferPointer<UInt8>')
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | Result(catching: { () throws(E) -> T in
70 | try body(unsafe buffer.span)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:112:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
110 | ) rethrows {
111 | if #available(SwiftStdlib 5.3, *) {
112 | try self.init(unsafeUninitializedCapacity: capacity) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
113 | unsafe try initializer(buffer)
114 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[160/181] Compiling SwiftIDNA ByteCheck+IDNA.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | self.init(copying: utf8Span)
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | span.withUnsafeBytes { spanPtr in
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:11:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
9 | } else if #available(SwiftStdlib 5.3, *) {
10 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
11 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
12 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
13 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:21:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
19 | unsafeUninitializedCapacity: span.count
20 | ) { buffer, initializedCount in
21 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
22 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
23 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:39:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
37 | self.init(copying: utf8Span)
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
40 | span.withUnsafeBytes { spanPtr in
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:40:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
38 | } else if #available(SwiftStdlib 5.3, *) {
39 | self.init(unsafeUninitializedCapacity: span.count) { buffer in
40 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
41 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
42 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:50:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafeUninitializedCapacity: span.count
49 | ) { buffer, initializedCount in
50 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
51 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
52 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:68:29: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
66 | /// Fast path: Currently always the case for non-Darwin.
67 | /// On Darwin, always the case unless for some objc-bridged strings.
68 | if let fastResult = self.utf8.withContiguousStorageIfAvailable({ buffer in
| | | `- note: argument #0 in call to instance method 'withContiguousStorageIfAvailable' has unsafe type '(UnsafeBufferPointer<String.UTF8View.Element>) throws -> Result<T, E>' (aka '(UnsafeBufferPointer<UInt8>) throws -> Result<T, E>')
| | `- note: reference to instance method 'withContiguousStorageIfAvailable' involves unsafe type 'UnsafeBufferPointer<String.UTF8View.Element>' (aka 'UnsafeBufferPointer<UInt8>')
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | Result(catching: { () throws(E) -> T in
70 | try body(unsafe buffer.span)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:112:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
110 | ) rethrows {
111 | if #available(SwiftStdlib 5.3, *) {
112 | try self.init(unsafeUninitializedCapacity: capacity) { buffer in
| | | `- note: argument 'initializingUTF8With' in call to initializer 'init' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws -> Int'
| | `- note: reference to initializer 'init(unsafeUninitializedCapacity:initializingUTF8With:)' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
113 | unsafe try initializer(buffer)
114 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[161/181] Compiling SwiftIDNA IDNA.MappingErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/IDNA.MappingErrors.swift:47:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
45 | var errors = [MappingError]()
46 | errors.reserveCapacity(self.errors.count)
47 | self.errors.span.withUnsafeBufferPointer { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<IDNA.MappingError>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<IDNA.MappingError>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafe errors.append(contentsOf: spanPtr)
49 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[162/181] Compiling SwiftIDNA IDNA.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/IDNA.MappingErrors.swift:47:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
45 | var errors = [MappingError]()
46 | errors.reserveCapacity(self.errors.count)
47 | self.errors.span.withUnsafeBufferPointer { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<IDNA.MappingError>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<IDNA.MappingError>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafe errors.append(contentsOf: spanPtr)
49 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[163/181] Compiling SwiftIDNA IDNAMapping.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/IDNA.MappingErrors.swift:47:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
45 | var errors = [MappingError]()
46 | errors.reserveCapacity(self.errors.count)
47 | self.errors.span.withUnsafeBufferPointer { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<IDNA.MappingError>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<IDNA.MappingError>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafe errors.append(contentsOf: spanPtr)
49 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[164/181] Compiling SwiftIDNA NFCScalarInfo.swift
[165/181] Compiling SwiftIDNA Punycode.swift
[166/181] Compiling SwiftIDNA DecodedUnicodeScalars.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/DecodedUnicodeScalars.swift:117:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
115 | @inlinable
116 | func withUnsafeScalarValues(_ block: (Span<UInt32>) -> Void) {
117 | self.scalars.withUnsafeBufferPointer { buffer -> Void in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UnicodeScalarValue>) -> Void'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UnicodeScalarValue>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
118 | guard let base = buffer.baseAddress else {
119 | return
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[167/181] Compiling SwiftIDNA IDNAUnicodeScalarView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/DecodedUnicodeScalars.swift:117:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
115 | @inlinable
116 | func withUnsafeScalarValues(_ block: (Span<UInt32>) -> Void) {
117 | self.scalars.withUnsafeBufferPointer { buffer -> Void in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UnicodeScalarValue>) -> Void'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UnicodeScalarValue>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
118 | guard let base = buffer.baseAddress else {
119 | return
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[168/181] Compiling SwiftIDNA LinkedList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/DecodedUnicodeScalars.swift:117:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
115 | @inlinable
116 | func withUnsafeScalarValues(_ block: (Span<UInt32>) -> Void) {
117 | self.scalars.withUnsafeBufferPointer { buffer -> Void in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UnicodeScalarValue>) -> Void'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UnicodeScalarValue>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
118 | guard let base = buffer.baseAddress else {
119 | return
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[169/181] Compiling SwiftIDNA IDNA_API.swift
[170/181] Compiling SwiftIDNA IDNA_Impl_assumingUnsanitized.swift
[171/181] Compiling SwiftIDNA UTF8BytesIterator.swift
[172/181] Compiling SwiftIDNA UnicodeScalarIterator.swift
[173/181] Compiling SwiftIDNA IDNA.ConversionResult.swift
[174/181] Compiling SwiftIDNA IDNA_Impl_assumingValidUTF8.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/NFCNormalization.swift:71:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | var isEqualToCurrent = 1
70 | while let (scalarUTF8Length, bytes) = iterator.branchlessNext(in: scalarsSpan) {
71 | withUnsafeBytes(of: bytes) { bytesPtr in
| | `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | for idx in 0..<scalarUTF8Length {
73 | let uncheckedSpanIdx = utf8Count &+ idx
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/NFCNormalization.swift:126:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
124 | /// NFC form at most 3 UTF-8 bytes per input UTF-8 byte. The generator verifies both
125 | /// bounds on every table regeneration.
126 | withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
127 | of: UInt32.self,
128 | capacity: 2 &* span.count
129 | ) { scalarsBuffer in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) -> R'
130 | var scalarsCount = 0
131 | /// For Normalization Form C, we need to first go through the decomposition step:
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[175/181] Compiling SwiftIDNA NFCNormalization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/NFCNormalization.swift:71:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | var isEqualToCurrent = 1
70 | while let (scalarUTF8Length, bytes) = iterator.branchlessNext(in: scalarsSpan) {
71 | withUnsafeBytes(of: bytes) { bytesPtr in
| | `- note: argument #1 in call to global function 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | for idx in 0..<scalarUTF8Length {
73 | let uncheckedSpanIdx = utf8Count &+ idx
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/NFCNormalization.swift:126:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
124 | /// NFC form at most 3 UTF-8 bytes per input UTF-8 byte. The generator verifies both
125 | /// bounds on every table regeneration.
126 | withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
127 | of: UInt32.self,
128 | capacity: 2 &* span.count
129 | ) { scalarsBuffer in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) -> R'
130 | var scalarsCount = 0
131 | /// For Normalization Form C, we need to first go through the decomposition step:
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[176/181] Compiling SwiftIDNA SIMDUnicodeScalarDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:67:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
65 | _ body: (inout SIMDUnicodeScalarDecoder) throws(Failure) -> R
66 | ) throws(Failure) -> R {
67 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
68 | of: UInt8.self,
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
71 | try withUnsafeTemporaryAllocation(
72 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:71:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
71 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | of: UInt8.self,
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
75 | try withUnsafeTemporaryAllocation(
76 | of: UInt32.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:75:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
75 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
76 | of: UInt32.self,
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) throws(Failure) -> R'
79 | try withUnsafeTemporaryAllocation(
80 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:79:21: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
79 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
80 | of: UInt8.self,
81 | capacity: Self.scalarStartOffsetsSize
82 | ) { scalarStartOffsets throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
83 | unsafe tempBytes.initialize(repeating: 0)
84 | unsafe paddedScalarUTF8Lengths.initialize(repeating: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:169:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
167 | /// `tempBytes` is initialized-memory by above code (`tempBytes.initialize(repeating: 0)`), so it's valid anyway.
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
| | | `- note: argument #0 in call to instance method 'withUnsafeMutableBufferPointer' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeMutableBufferPointer' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
170 | encodedBytes.withUnsafeBufferPointer { encoded in
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:170:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
170 | encodedBytes.withUnsafeBufferPointer { encoded in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
172 | let rawEncodedBytes = UnsafeRawBufferPointer(encoded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/TinyBuffer.swift:359:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
357 | _ body: (consuming InlineElements) throws(Failure) -> R
358 | ) throws(Failure) -> R {
359 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
360 | of: UInt8.self,
361 | capacity: Self.maximumCapacity
362 | ) { alloc throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
363 | try body(unsafe InlineElements(buffer: alloc, count: 0))
364 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[177/181] Compiling SwiftIDNA TinyBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:67:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
65 | _ body: (inout SIMDUnicodeScalarDecoder) throws(Failure) -> R
66 | ) throws(Failure) -> R {
67 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
68 | of: UInt8.self,
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
71 | try withUnsafeTemporaryAllocation(
72 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:71:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
71 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | of: UInt8.self,
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
75 | try withUnsafeTemporaryAllocation(
76 | of: UInt32.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:75:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
75 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
76 | of: UInt32.self,
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) throws(Failure) -> R'
79 | try withUnsafeTemporaryAllocation(
80 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:79:21: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
79 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
80 | of: UInt8.self,
81 | capacity: Self.scalarStartOffsetsSize
82 | ) { scalarStartOffsets throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
83 | unsafe tempBytes.initialize(repeating: 0)
84 | unsafe paddedScalarUTF8Lengths.initialize(repeating: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:169:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
167 | /// `tempBytes` is initialized-memory by above code (`tempBytes.initialize(repeating: 0)`), so it's valid anyway.
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
| | | `- note: argument #0 in call to instance method 'withUnsafeMutableBufferPointer' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeMutableBufferPointer' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
170 | encodedBytes.withUnsafeBufferPointer { encoded in
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:170:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
170 | encodedBytes.withUnsafeBufferPointer { encoded in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
172 | let rawEncodedBytes = UnsafeRawBufferPointer(encoded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/TinyBuffer.swift:359:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
357 | _ body: (consuming InlineElements) throws(Failure) -> R
358 | ) throws(Failure) -> R {
359 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
360 | of: UInt8.self,
361 | capacity: Self.maximumCapacity
362 | ) { alloc throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
363 | try body(unsafe InlineElements(buffer: alloc, count: 0))
364 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[178/181] Compiling SwiftIDNA TinyBufferSubSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:67:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
65 | _ body: (inout SIMDUnicodeScalarDecoder) throws(Failure) -> R
66 | ) throws(Failure) -> R {
67 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
68 | of: UInt8.self,
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
71 | try withUnsafeTemporaryAllocation(
72 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:71:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
71 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | of: UInt8.self,
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
75 | try withUnsafeTemporaryAllocation(
76 | of: UInt32.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:75:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
75 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
76 | of: UInt32.self,
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) throws(Failure) -> R'
79 | try withUnsafeTemporaryAllocation(
80 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:79:21: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
79 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
80 | of: UInt8.self,
81 | capacity: Self.scalarStartOffsetsSize
82 | ) { scalarStartOffsets throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
83 | unsafe tempBytes.initialize(repeating: 0)
84 | unsafe paddedScalarUTF8Lengths.initialize(repeating: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:169:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
167 | /// `tempBytes` is initialized-memory by above code (`tempBytes.initialize(repeating: 0)`), so it's valid anyway.
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
| | | `- note: argument #0 in call to instance method 'withUnsafeMutableBufferPointer' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeMutableBufferPointer' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
170 | encodedBytes.withUnsafeBufferPointer { encoded in
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:170:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
170 | encodedBytes.withUnsafeBufferPointer { encoded in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
172 | let rawEncodedBytes = UnsafeRawBufferPointer(encoded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/TinyBuffer.swift:359:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
357 | _ body: (consuming InlineElements) throws(Failure) -> R
358 | ) throws(Failure) -> R {
359 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
360 | of: UInt8.self,
361 | capacity: Self.maximumCapacity
362 | ) { alloc throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
363 | try body(unsafe InlineElements(buffer: alloc, count: 0))
364 | }
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[179/181] Compiling SwiftIDNA UTF8Checker.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:19:20: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
17 | let windowSize = Self.windowSize
18 | if count &+ 3 <= windowSize &* 3 {
19 | return withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
20 | of: UInt8.self,
21 | capacity: windowSize &* 3 &+ 3
22 | ) { paddedBytes in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> Bool'
23 | unsafe paddedBytes.initialize(repeating: 0)
24 | let paddedBytesBuffer = unsafe UnsafeMutableRawBufferPointer(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:27:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
25 | rebasing: UnsafeMutableRawBufferPointer(paddedBytes)[3...]
26 | )
27 | bytes.withUnsafeBytes { rawBytes in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
28 | unsafe paddedBytesBuffer.copyMemory(from: rawBytes)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:41:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
39 | }
40 |
41 | var errorBits = withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
42 | of: UInt8.self,
43 | capacity: windowSize &+ 3
44 | ) { headBytes in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> UInt8'
45 | unsafe headBytes.initialize(repeating: 0)
46 | let headBytesBuffer = unsafe UnsafeMutableRawBufferPointer(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:49:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
47 | rebasing: UnsafeMutableRawBufferPointer(headBytes)[3...]
48 | )
49 | bytes.withUnsafeBytes { rawBytes in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
50 | unsafe headBytesBuffer.copyMemory(
51 | from: UnsafeRawBufferPointer(rebasing: rawBytes[..<windowSize])
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[180/181] Compiling SwiftIDNA UnicodeScalarValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:19:20: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
17 | let windowSize = Self.windowSize
18 | if count &+ 3 <= windowSize &* 3 {
19 | return withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
20 | of: UInt8.self,
21 | capacity: windowSize &* 3 &+ 3
22 | ) { paddedBytes in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> Bool'
23 | unsafe paddedBytes.initialize(repeating: 0)
24 | let paddedBytesBuffer = unsafe UnsafeMutableRawBufferPointer(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:27:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
25 | rebasing: UnsafeMutableRawBufferPointer(paddedBytes)[3...]
26 | )
27 | bytes.withUnsafeBytes { rawBytes in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
28 | unsafe paddedBytesBuffer.copyMemory(from: rawBytes)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:41:25: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
39 | }
40 |
41 | var errorBits = withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
42 | of: UInt8.self,
43 | capacity: windowSize &+ 3
44 | ) { headBytes in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> UInt8'
45 | unsafe headBytes.initialize(repeating: 0)
46 | let headBytesBuffer = unsafe UnsafeMutableRawBufferPointer(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/UTF8Checker.swift:49:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
47 | rebasing: UnsafeMutableRawBufferPointer(headBytes)[3...]
48 | )
49 | bytes.withUnsafeBytes { rawBytes in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
50 | unsafe headBytesBuffer.copyMemory(
51 | from: UnsafeRawBufferPointer(rebasing: rawBytes[..<windowSize])
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
[181/181] Emitting module SwiftIDNA
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+Array.swift:7:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
5 | package init(copying span: Span<Element>) {
6 | unsafe self.init(unsafeUninitializedCapacity: span.count) { buffer, initializedCount in
7 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let rawBuffer = UnsafeMutableRawBufferPointer(buffer)
9 | unsafe rawBuffer.copyMemory(from: spanPtr)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+OutputSpan.swift:10:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
8 | let usedCapacity = self.count
9 | unsafe self.withUnsafeMutableBufferPointer { buffer, initializedCount in
10 | span.withUnsafeBytes { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBytes' has unsafe type '(UnsafeRawBufferPointer) -> ()'
| | `- note: reference to instance method 'withUnsafeBytes' involves unsafe type 'UnsafeRawBufferPointer'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
11 | let target = unsafe UnsafeMutableRawPointer(
12 | buffer.baseAddress.unsafelyUnwrapped
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/+String.swift:68:29: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
66 | /// Fast path: Currently always the case for non-Darwin.
67 | /// On Darwin, always the case unless for some objc-bridged strings.
68 | if let fastResult = self.utf8.withContiguousStorageIfAvailable({ buffer in
| | | `- note: argument #0 in call to instance method 'withContiguousStorageIfAvailable' has unsafe type '(UnsafeBufferPointer<String.UTF8View.Element>) throws -> Result<T, E>' (aka '(UnsafeBufferPointer<UInt8>) throws -> Result<T, E>')
| | `- note: reference to instance method 'withContiguousStorageIfAvailable' involves unsafe type 'UnsafeBufferPointer<String.UTF8View.Element>' (aka 'UnsafeBufferPointer<UInt8>')
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | Result(catching: { () throws(E) -> T in
70 | try body(unsafe buffer.span)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/DecodedUnicodeScalars.swift:117:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
115 | @inlinable
116 | func withUnsafeScalarValues(_ block: (Span<UInt32>) -> Void) {
117 | self.scalars.withUnsafeBufferPointer { buffer -> Void in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UnicodeScalarValue>) -> Void'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UnicodeScalarValue>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
118 | guard let base = buffer.baseAddress else {
119 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:67:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
65 | _ body: (inout SIMDUnicodeScalarDecoder) throws(Failure) -> R
66 | ) throws(Failure) -> R {
67 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
68 | of: UInt8.self,
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
71 | try withUnsafeTemporaryAllocation(
72 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:71:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
69 | capacity: Self.tempBytesSize
70 | ) { tempBytes throws(Failure) -> R in
71 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
72 | of: UInt8.self,
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
75 | try withUnsafeTemporaryAllocation(
76 | of: UInt32.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:75:17: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
73 | capacity: Self.paddedScalarUTF8LengthsSize
74 | ) { paddedScalarUTF8Lengths throws(Failure) -> R in
75 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
76 | of: UInt32.self,
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) throws(Failure) -> R'
79 | try withUnsafeTemporaryAllocation(
80 | of: UInt8.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:79:21: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
77 | capacity: Self.windowSize
78 | ) { uncheckedScalarValues throws(Failure) -> R in
79 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
80 | of: UInt8.self,
81 | capacity: Self.scalarStartOffsetsSize
82 | ) { scalarStartOffsets throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
83 | unsafe tempBytes.initialize(repeating: 0)
84 | unsafe paddedScalarUTF8Lengths.initialize(repeating: 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:169:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
167 | /// `tempBytes` is initialized-memory by above code (`tempBytes.initialize(repeating: 0)`), so it's valid anyway.
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
| | | `- note: argument #0 in call to instance method 'withUnsafeMutableBufferPointer' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeMutableBufferPointer' involves unsafe type 'UnsafeMutableBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
170 | encodedBytes.withUnsafeBufferPointer { encoded in
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/SIMDUnicodeScalarDecoder.swift:170:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
168 | /// The pad bytes are not important.
169 | tempBytes.withUnsafeMutableBufferPointer { temp in
170 | encodedBytes.withUnsafeBufferPointer { encoded in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<UInt8>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<UInt8>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
171 | let rawTemp = UnsafeMutableRawBufferPointer(temp)
172 | let rawEncodedBytes = UnsafeRawBufferPointer(encoded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/Collections/TinyBuffer.swift:359:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
357 | _ body: (consuming InlineElements) throws(Failure) -> R
358 | ) throws(Failure) -> R {
359 | try withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
360 | of: UInt8.self,
361 | capacity: Self.maximumCapacity
362 | ) { alloc throws(Failure) -> R in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt8>) throws(Failure) -> R'
363 | try body(unsafe InlineElements(buffer: alloc, count: 0))
364 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/IDNA.MappingErrors.swift:47:13: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
45 | var errors = [MappingError]()
46 | errors.reserveCapacity(self.errors.count)
47 | self.errors.span.withUnsafeBufferPointer { spanPtr in
| | | `- note: argument #0 in call to instance method 'withUnsafeBufferPointer' has unsafe type '(UnsafeBufferPointer<IDNA.MappingError>) -> ()'
| | `- note: reference to instance method 'withUnsafeBufferPointer' involves unsafe type 'UnsafeBufferPointer<IDNA.MappingError>'
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
48 | unsafe errors.append(contentsOf: spanPtr)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftIDNA/NFCNormalization.swift:126:9: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
124 | /// NFC form at most 3 UTF-8 bytes per input UTF-8 byte. The generator verifies both
125 | /// bounds on every table regeneration.
126 | withUnsafeTemporaryAllocation(
| `- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
127 | of: UInt32.self,
128 | capacity: 2 &* span.count
129 | ) { scalarsBuffer in
| `- note: argument #2 in call to global function 'withUnsafeTemporaryAllocation' has unsafe type '(UnsafeMutableBufferPointer<UInt32>) -> R'
130 | var scalarsCount = 0
131 | /// For Normalization Form C, we need to first go through the decomposition step:
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
Build complete! (12.25s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/swift-dns/swift-vectorization.git
[1/1404] Fetching swift-vectorization
[268/31231] Fetching swift-vectorization, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (3.52s)
Fetched https://github.com/swift-dns/swift-vectorization.git from cache (3.52s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (4.21s)
Computing version for https://github.com/swift-dns/swift-vectorization.git
Computed https://github.com/swift-dns/swift-vectorization.git at 1.0.0-alpha.12 (0.54s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.5
Creating working copy for https://github.com/swift-dns/swift-vectorization.git
Working copy of https://github.com/swift-dns/swift-vectorization.git resolved at 1.0.0-alpha.12
Build complete.
{
"dependencies" : [
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.7.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-vectorization",
"requirement" : {
"exact" : [
"1.0.0-alpha.12"
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-dns/swift-vectorization.git"
}
],
"manifest_display_name" : "swift-idna",
"name" : "swift-idna",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftIDNA",
"targets" : [
"SwiftIDNA"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftIDNA",
"module_type" : "SwiftTarget",
"name" : "SwiftIDNA",
"path" : "Sources/SwiftIDNA",
"product_dependencies" : [
"BasicContainers",
"Vectorization"
],
"product_memberships" : [
"SwiftIDNA"
],
"sources" : [
"+Array.swift",
"+BinaryInteger.swift",
"+OutputSpan.swift",
"+Span.swift",
"+String.swift",
"ByteCheck+IDNA.swift",
"Collections/DecodedUnicodeScalars.swift",
"Collections/IDNAUnicodeScalarView.swift",
"Collections/LinkedList.swift",
"Collections/SIMDUnicodeScalarDecoder.swift",
"Collections/TinyBuffer.swift",
"Collections/TinyBufferSubSequence.swift",
"Collections/UTF8BytesIterator.swift",
"Collections/UnicodeScalarIterator.swift",
"IDNA.ConversionResult.swift",
"IDNA.MappingErrors.swift",
"IDNA.swift",
"IDNAMapping.swift",
"IDNA_API.swift",
"IDNA_Impl_assumingUnsanitized.swift",
"IDNA_Impl_assumingValidUTF8.swift",
"NFCNormalization.swift",
"NFCScalarInfo.swift",
"Punycode.swift",
"UTF8Checker.swift",
"UnicodeScalarValue.swift"
],
"target_dependencies" : [
"CSwiftIDNA"
],
"type" : "library"
},
{
"c99name" : "IDNATests",
"module_type" : "SwiftTarget",
"name" : "IDNATests",
"path" : "Tests/IDNATests",
"sources" : [
"DecoderWindowEquivalenceTests.swift",
"IDNAMappingLookupTests.swift",
"IDNATestV2Case.swift",
"IDNATests.swift",
"IllFormedUTF8Tests.swift",
"LinkedListTests.swift",
"MarkLookupTests.swift",
"NFCTestCase.swift",
"NFCTests.swift",
"PunycodeCapacityTests.swift"
],
"target_dependencies" : [
"SwiftIDNA",
"CSwiftIDNATesting"
],
"type" : "test"
},
{
"c99name" : "CSwiftIDNATesting",
"module_type" : "ClangTarget",
"name" : "CSwiftIDNATesting",
"path" : "Sources/CSwiftIDNATesting",
"sources" : [
"src/cswift_idna_nfc_test_cases.c",
"src/cswift_idna_test_v2_cases.c"
],
"type" : "library"
},
{
"c99name" : "CSwiftIDNA",
"module_type" : "ClangTarget",
"name" : "CSwiftIDNA",
"path" : "Sources/CSwiftIDNA",
"product_memberships" : [
"SwiftIDNA"
],
"sources" : [
"src/cswift_idna_mapping_table.c",
"src/cswift_idna_mark_table.c",
"src/cswift_idna_nfc_table.c"
],
"type" : "library"
}
],
"tools_version" : "6.3"
}
Done.