Build Information
Successful build of Swiftish with Swift 6.0 for Linux.
Swift 6 data race errors: 9
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkolb/swiftish.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/jkolb/swiftish
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d8680cb Conversion between different types of IntVectors. Common aliases for x, y, z, w. Default conformance to Hashable.
Cloned https://github.com/jkolb/swiftish.git
Revision (git rev-parse @):
d8680cba1e30bbfd212844cae3a2081cc00e16a7
SUCCESS checkout https://github.com/jkolb/swiftish.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/jkolb/swiftish.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/24] Emitting module Swiftish
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[4/26] Compiling Swiftish Matrix4x4.swift
[5/26] Compiling Swiftish PerspectiveProjection.swift
[6/26] Compiling Swiftish Plane.swift
[7/26] Compiling Swiftish Bounds2.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[8/26] Compiling Swiftish Bounds3.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[9/26] Compiling Swiftish Circle.swift
/host/spi-builder-workspace/Sources/Swiftish/Bounds3.swift:206:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Bounds3<T: Vectorable> : Hashable {
| `- note: 'T' previously declared here
26 | public var center: Vector3<T>
27 | public var extents: Vector3<T>
:
204 | }
205 |
206 | public static func distance2<T>(_ point: Vector3<T>, _ bounds: Bounds3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
207 | var distanceSquared: T = 0
208 | let minimum = bounds.minimum
[10/26] Compiling Swiftish Frustum.swift
[11/26] Compiling Swiftish IntVector2.swift
[12/26] Compiling Swiftish IntVector3.swift
[13/26] Compiling Swiftish Vector4.swift
[14/26] Compiling Swiftish Vectorable.swift
[15/26] Compiling Swiftish Trigonometry.swift
[16/26] Compiling Swiftish Vector2.swift
[17/26] Compiling Swiftish Vector3.swift
[18/26] Compiling Swiftish Transform3.swift
[19/26] Compiling Swiftish Triangle2.swift
[20/26] Compiling Swiftish Triangle3.swift
[21/26] Compiling Swiftish Quaternion.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[22/26] Compiling Swiftish Ray3.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[23/26] Compiling Swiftish Sphere.swift
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:308:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
306 | // MARK: Conjugate
307 |
308 | public static func conjugate<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
309 | return Quaternion<T>(q.w, -q.xyz)
310 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:314:28: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
312 | // MARK: Geometric
313 |
314 | public static func dot<T>(_ a: Quaternion<T>, _ b: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
315 | return a.w * b.w + Vector3<T>.dot(a.xyz, b.xyz)
316 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:318:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
316 | }
317 |
318 | public static func length2<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
319 | return q.w * q.w + Vector3<T>.sum(q.xyz * q.xyz)
320 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:322:31: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
320 | }
321 |
322 | public static func length<T>(_ q: Quaternion<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
323 | return length2(q).squareRoot()
324 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:326:34: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
324 | }
325 |
326 | public static func normalize<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
327 | return q * (1 / length(q))
328 | }
/host/spi-builder-workspace/Sources/Swiftish/Quaternion.swift:332:32: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Quaternion<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var w: T
27 | public var xyz: Vector3<T>
:
330 | // MARK: - Inverse
331 |
332 | public static func inverse<T>(_ q: Quaternion<T>) -> Quaternion<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
333 | return Quaternion<T>.conjugate(q) / dot(q, q)
334 | }
/host/spi-builder-workspace/Sources/Swiftish/Ray3.swift:38:33: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Ray3<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public var origin: Vector3<T>
27 | public var direction: Vector3<T>
:
36 | }
37 |
38 | public static func distance<T>(_ r: Ray3<T>, _ t: Triangle3<T>) -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
39 | let n = t.normal
40 | let qp = -r.direction
/host/spi-builder-workspace/Sources/Swiftish/Sphere.swift:56:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | */
24 |
25 | public struct Sphere<T: Vectorable> : Hashable, CustomStringConvertible {
| `- note: 'T' previously declared here
26 | public let center: Vector3<T>
27 | public let radius: T
:
54 | }
55 |
56 | public static func union<T>(_ a: Sphere<T>, _ b: Sphere<T>) -> Sphere<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
57 | let midpoint = (a.center + b.center) / 2
58 | let largestRadius = Vector3<T>.distance(midpoint, a.center) + max(a.radius, b.radius)
[24/26] Compiling Swiftish IntVector4.swift
[25/26] Compiling Swiftish Matrix2x2.swift
[26/26] Compiling Swiftish Matrix3x3.swift
Build complete! (34.63s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Swiftish",
"name" : "Swiftish",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Swiftish",
"targets" : [
"Swiftish"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftishTests",
"module_type" : "SwiftTarget",
"name" : "SwiftishTests",
"path" : "Tests/SwiftishTests",
"sources" : [
"Matrix2Tests.swift",
"Matrix3Tests.swift",
"Matrix4Tests.swift",
"Vector2Tests.swift",
"Vector3Tests.swift",
"Vector4Tests.swift"
],
"target_dependencies" : [
"Swiftish"
],
"type" : "test"
},
{
"c99name" : "Swiftish",
"module_type" : "SwiftTarget",
"name" : "Swiftish",
"path" : "Sources/Swiftish",
"product_memberships" : [
"Swiftish"
],
"sources" : [
"Bounds2.swift",
"Bounds3.swift",
"Circle.swift",
"Frustum.swift",
"IntVector2.swift",
"IntVector3.swift",
"IntVector4.swift",
"Matrix2x2.swift",
"Matrix3x3.swift",
"Matrix4x4.swift",
"PerspectiveProjection.swift",
"Plane.swift",
"Quaternion.swift",
"Ray3.swift",
"Sphere.swift",
"Transform3.swift",
"Triangle2.swift",
"Triangle3.swift",
"Trigonometry.swift",
"Vector2.swift",
"Vector3.swift",
"Vector4.swift",
"Vectorable.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.