mirror of
https://github.com/apple/swift.git
synced 2026-10-28 21:15:56 +01:00
Changes how DiagnosticEngine prints DeclAttribute, to match TypeAttribute. Kind will show attribute or modifier as appropriate, and %0 will quote and include an at sign if appropriate. This prevents diagnostics like `attribute @foo`. Also updates the diagnostic message for unsupported_closure_attr to use this new behavior instead of a select. This updates a ton of tests, to use the new consistent '@foo' or attribute 'foo' style. Many of these diagnostics had %0, and now get quoting automatically, but diagnostics that quoted their attribute needed to be edited.
This directory tests fixed compiler crashers related to differentiable programming in Swift.
lit.local.cfg checks for asserts as a lit available feature, so there is
no need to add REQUIRES: asserts to individual test files.