Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Savonichev
b1f36d2c6d [AutoDiff] Fix test/Constraints/noderivative.swift (#67190)
The test imports _Differentiation, so it needs the REQUIRES line or people that build without that feature will fail this test.
2023-07-10 09:50:06 -07:00
Andrew Savonichev
b6acb6fbef [AutoDiff] Check @noDerivative for function type comparison (#67121)
As described in the issue #62922, the compiler should not allow to discard @noDerivative attribute and keep @differentiable. The patch adds a diagnostic for this case.

Resolves #62922.
2023-07-06 15:21:30 -07:00