Make NS_ENUM &c. Sendable even when audited

An explicit swift_attr("@_nonSendable") will override it (except for ns_error_domain where the type is embedded in another type that's forced to be Sendable), but swift_attr("@_nonSendable(_assumed)") will not.
This commit is contained in:
Becca Royal-Gordon
2021-11-12 14:34:02 -08:00
parent 8007d70659
commit ad0e7096ba
11 changed files with 171 additions and 29 deletions

View File

@@ -4,7 +4,7 @@
// RUN: %FileCheck -input-file=%t.response %s
// CHECK: struct MyError : CustomNSError, Hashable, Error {
// CHECK: enum Code : Int32, Equatable {
// CHECK: enum Code : Int32, @unchecked Sendable, Equatable {
// CHECK: case errFirst
// CHECK: case errSecond
// CHECK: }