@@ -618,7 +618,8 @@ func testClassTangentPropertyNotStored(_ c: ClassTangentPropertyNotStored) -> Fl
618
618
// CHECK-LABEL: sil {{.*}} @test_class_tangent_property_not_stored
619
619
// CHECK: ref_element_addr {{%.*}} : $ClassTangentPropertyNotStored, #ClassTangentPropertyNotStored.x
620
620
621
- // SR-13134: Test stored property access with conditionally `Differentiable` base type.
621
+ // https://github.com/apple/swift/issues/55580
622
+ // Test stored property access with conditionally `Differentiable` base type.
622
623
623
624
struct Complex < T: FloatingPoint > {
624
625
var real : T
@@ -630,7 +631,7 @@ extension Complex: Differentiable where T: Differentiable {
630
631
extension Complex : AdditiveArithmetic { }
631
632
632
633
@differentiable ( reverse)
633
- func SR_13134 ( lhs: Complex < Float > , rhs: Complex < Float > ) -> Float {
634
+ func f_55580 ( lhs: Complex < Float > , rhs: Complex < Float > ) -> Float {
634
635
return lhs. real + rhs. real
635
636
}
636
637
@@ -692,7 +693,8 @@ func projectedValueAccess(_ s: Struct) -> Float {
692
693
s. $y. wrappedValue
693
694
}
694
695
695
- // SR-12640: Test `wrapperValue.modify` differentiation.
696
+ // https://github.com/apple/swift/issues/55084
697
+ // Test `wrapperValue.modify` differentiation.
696
698
697
699
// expected-error @+2 {{function is not differentiable}}
698
700
// expected-note @+2 {{when differentiating this function definition}}
@@ -722,7 +724,7 @@ func tupleArrayLiteralInitialization(_ x: Float, _ y: Float) -> Float {
722
724
// Subset parameter differentiation thunks
723
725
//===----------------------------------------------------------------------===//
724
726
725
- // FIXME(SR-13046) : Non-differentiability diagnostic crash due to invalid source location.
727
+ // FIXME: Non-differentiability diagnostic crash due to invalid source location (https://github.com/apple/swift/issues/55492) .
726
728
/*
727
729
func testNoDerivativeParameter(_ f: @differentiable(reverse) (Float, @noDerivative Float) -> Float) -> Float {
728
730
return gradient(at: 2) { x in f(x * x, x) }
@@ -774,27 +776,27 @@ public func fragileDifferentiable(_ x: Float) -> Float {
774
776
}
775
777
776
778
777
- // FIXME(rdar://87429620): Differentiable curry thunk RequirementMachine error.
779
+ // FIXME: Differentiable curry thunk RequirementMachine error (rdar://87429620, https://github.com/apple/swift/issues/54819) .
778
780
#if false
779
781
// TF-1208: Test curry thunk differentiation regression.
780
- public struct SR_14228_Struct < Scalar> {
782
+ public struct Struct_54819 < Scalar> {
781
783
var x : Scalar
782
784
}
783
- extension SR_14228_Struct : Differentiable where Scalar: Differentiable {
785
+ extension Struct_54819 : Differentiable where Scalar: Differentiable {
784
786
@differentiable ( reverse)
785
787
public static func id( x: Self ) -> Self {
786
788
return x
787
789
}
788
790
}
789
791
@differentiable ( reverse, wrt: x)
790
- public func SR_14228 < Scalar: Differentiable > (
791
- _ x: SR_14228_Struct < Scalar > ,
792
- // NOTE(TF-1208): This diagnostic is unexpected because `SR_14228_Struct .id` is marked `@differentiable`.
792
+ public func f_54819 < Scalar: Differentiable > (
793
+ _ x: Struct_54819 < Scalar > ,
794
+ // NOTE(TF-1208): This diagnostic is unexpected because `Struct_54819 .id` is marked `@differentiable`.
793
795
// xpected-error @+3 2 {{function is not differentiable}}
794
796
// xpected-note @+2 {{differentiated functions in '@inlinable' functions must be marked '@differentiable' or have a public '@derivative'; this is not possible with a closure, make a top-level function instead}}
795
797
// xpected-note @+1 {{opaque non-'@differentiable' function is not differentiable}}
796
- reduction: @differentiable ( reverse) ( SR_14228_Struct < Scalar > ) -> SR_14228_Struct < Scalar > = SR_14228_Struct . id
797
- ) -> SR_14228_Struct < Scalar > {
798
+ reduction: @differentiable ( reverse) ( Struct_54819 < Scalar > ) -> Struct_54819 < Scalar > = Struct_54819 . id
799
+ ) -> Struct_54819 < Scalar > {
798
800
reduction ( x)
799
801
}
800
802
#endif
0 commit comments