Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates to @differentiable. #183

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

allevato
Copy link
Member

@allevato allevato commented Apr 8, 2020

swiftlang/swift#30001 removed the logic
from the parser to handle the jvp: and vjp: arguments of
the attribute (but left the syntax definitions in place for
the time being). Since this causes an attribute with those
arguments to fail to parse, I've removed them from the tests
so that those tests continue to pass under the new behavior.
(The arguments were always optional, so they pass under the
old behavior as well.)

This also caught and fixed a bug where an attribute with
only a wrt: and a where clause wasn't getting formatted
correctly.

swiftlang/swift#30001 removed the logic
from the parser to handle the `jvp:` and `vjp:` arguments of
the attribute (but left the syntax definitions in place for
the time being). Since this causes an attribute with those
arguments to fail to parse, I've removed them from the tests
so that those tests continue to pass under the new behavior.
(The arguments were always optional, so they pass under the
old behavior as well.)

This also caught and fixed a bug where an attribute with
only a `wrt:` and a `where` clause wasn't getting formatted
correctly.
@allevato
Copy link
Member Author

allevato commented Apr 8, 2020

cc @dylansturg

@allevato allevato merged commit b573b95 into swiftlang:master Apr 8, 2020
@allevato allevato deleted the no-mo-vjp-jvp branch April 8, 2020 17:34
aaditya-chandrasekhar pushed a commit to val-verde/swift-format that referenced this pull request May 20, 2021
* Test with Swift 5.3 on Linux

* Test Swift 5.3 and 5.2 on Linux

* Test Swift 5.3 and 5.2 on macOS

* Add package manifests for Swift 5.2 and 5.3

* Add Changelog entry for swiftlang#183

* Test on latest version of Xcode for Swift 5.2

Co-authored-by: Mattt <mattt@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants