Files
swift-mirror/test/AutoDiff
Kshitij Jain 8b73c98286 Fixes https://github.com/apple/swift/issues/59100 (#67162)
The above referenced issue was causing a compiler crash when writing
differentiable protocols and corresponding implementers, without importing
the `_Differentiation` module.

Changes in this CR fix the issue by marking any `@differentiable`
attributes as invalid, if the `_Differentiation` module has not been
imported. This ignores the `@differentiable` attributes when the
protocol witnesses are being verified. Witness verification was previously
leading to an error (due to missing `@differentiable` attribute on the protocol
requirement implementer), and the corresponding diagnostic emission code was
then leading to a crash, because it was expecting the `_Differentiation`
module to be present.
2023-07-07 07:32:55 -05:00
..
2023-06-29 16:16:56 -07:00
2023-06-20 12:47:56 -07:00

Differentiable Programming Test Suite

This directory tests differentiable programming in Swift, described in docs/DifferentiableProgramming.md.

Tests are categorized in subdirectories mimicking the directories in test/.