From 750170404ad62d735cc5df9fb320799f9e52aab5 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Fri, 1 May 2020 08:50:32 -0400 Subject: [PATCH] The derivative of Complex.init(_:_:) is broken with the current Xcode toolchain. Remove it for now; it'll still be present on the -5.3 branch, so we'll pick it up again when we're able to. --- Sources/ComplexModule/Differentiable.swift | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Sources/ComplexModule/Differentiable.swift b/Sources/ComplexModule/Differentiable.swift index 75883f7..443a1d5 100644 --- a/Sources/ComplexModule/Differentiable.swift +++ b/Sources/ComplexModule/Differentiable.swift @@ -19,16 +19,6 @@ where RealType: Differentiable, RealType.TangentVector == RealType { extension Complex where RealType: Differentiable, RealType.TangentVector == RealType { - @derivative(of: init(_:_:)) - @usableFromInline - static func _derivativeInit( - _ real: RealType, - _ imaginary: RealType - ) -> (value: Complex, pullback: (Complex) -> (RealType, RealType)) { - (value: .init(real, imaginary), pullback: { v in - (v.real, v.imaginary) - }) - } @derivative(of: real) @usableFromInline