Skip to content

Commit 1830066

Browse files
authored
Use DisableOutwardActorInference in the example for the "User intent" section.
1 parent 2c60494 commit 1830066

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

proposals/NNNN-migration-tooling-for-upcoming-features.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,19 @@ patterns.
4545

4646
Needless to say, not all upcoming features fall under these criteria (and not
4747
all features are source-breaking in the first place). Consider
48-
[`ConciseMagicFile`][SE-0274], which changes the meaning of an existing
49-
literal.
48+
[`DisableOutwardActorInference`][SE-0401], which changes actor isolation
49+
inference of a type that contains an actor-isolated property wrapper. There
50+
is no way for the programmer to specify that they'd like compiler fix-its to
51+
make the existing actor isolation inference explicit. If they enable the
52+
upcoming feature, their code will simply behave differently. This was a
53+
point of debate in the review of SE-0401, and the Language Steering Group
54+
concluded that automatic migration tooling is the right way to address this
55+
particular workflow, as [noted in the acceptance notes][SE-0401-acceptance:
56+
57+
> the Language Steering Group believes that separate migration tooling to
58+
> help programmers audit code whose behavior will change under Swift 6 mode
59+
> would be beneficial for all upcoming features that can change behavior
60+
> without necessarily emitting errors.
5061
5162
### Automation
5263

@@ -328,3 +339,4 @@ Special thanks to Holly for her guidance throughout the draft stage.
328339
[SE-0434]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0434-global-actor-isolated-types-usability.md
329340
[SE-0444]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
330341
[async-inherit-isolation-pitch]: https://forums.swift.org/t/pitch-inherit-isolation-by-default-for-async-functions/74862
342+
[SE-0401-acceptance]: https://forums.swift.org/t/accepted-with-modifications-se-0401-remove-actor-isolation-inference-caused-by-property-wrappers/66241

0 commit comments

Comments
 (0)