mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make InferIsolatedConformances a migratable upcoming feature
When migrating, provide warnings that add 'nonisolated' to nonisolated
conformances that don't already have it and would end up being inferred
to be isolated under the upcoming feature.
(cherry picked from commit a32782bcbc)
This commit is contained in:
@@ -8545,6 +8545,9 @@ GROUPED_ERROR(isolated_conformance_with_sendable_simple,IsolatedConformances,
|
||||
GROUPED_ERROR(isolated_conformance_wrong_domain,IsolatedConformances,none,
|
||||
"%0 conformance of %1 to %2 cannot be used in %3 context",
|
||||
(ActorIsolation, Type, DeclName, ActorIsolation))
|
||||
GROUPED_WARNING(isolated_conformance_will_become_nonisolated,IsolatedConformances,none,
|
||||
"conformance of %0 to %1 should be marked 'nonisolated' to retain its behavior with upcoming feature 'InferIsolatedConformances'",
|
||||
(const ValueDecl *, const ValueDecl *))
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MARK: @_inheritActorContext
|
||||
|
||||
@@ -283,7 +283,7 @@ UPCOMING_FEATURE(GlobalActorIsolatedTypesUsability, 0434, 6)
|
||||
MIGRATABLE_UPCOMING_FEATURE(ExistentialAny, 335, 7)
|
||||
UPCOMING_FEATURE(InternalImportsByDefault, 409, 7)
|
||||
UPCOMING_FEATURE(MemberImportVisibility, 444, 7)
|
||||
UPCOMING_FEATURE(InferIsolatedConformances, 470, 7)
|
||||
MIGRATABLE_UPCOMING_FEATURE(InferIsolatedConformances, 470, 7)
|
||||
MIGRATABLE_UPCOMING_FEATURE(NonisolatedNonsendingByDefault, 461, 7)
|
||||
|
||||
// Optional language features / modes
|
||||
|
||||
Reference in New Issue
Block a user