Skip to content

Commit 925b72e

Browse files
Merge pull request #76337 from DePasqualeOrg/grammar-compound-modifiers
Grammatical corrections for compound modifiers
2 parents cfe6195 + c9b1738 commit 925b72e

36 files changed

+84
-84
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ And the module structure to support such applications looks like this:
447447

448448
* [SE-0430][]:
449449

450-
Region Based Isolation is now extended to enable the application of an
450+
Region-Based Isolation is now extended to enable the application of an
451451
explicit `sending` annotation to function parameters and results. A function
452452
parameter or result that is annotated with `sending` is required to be
453453
disconnected at the function boundary and thus possesses the capability of
@@ -485,7 +485,7 @@ And the module structure to support such applications looks like this:
485485

486486
func useValue() {
487487
let x = NonSendableType()
488-
let a = await MyActor(x) // Error without Region Based Isolation!
488+
let a = await MyActor(x) // Error without Region-Based Isolation!
489489
}
490490
```
491491

include/swift/AST/DiagnosticsSIL.def

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -964,10 +964,10 @@ NOTE(sil_referencebinding_inout_binding_here, none,
964964
())
965965

966966
//===----------------------------------------------------------------------===//
967-
// MARK: Region Based Isolation Diagnostics
967+
// MARK: Region-Based Isolation Diagnostics
968968
//===----------------------------------------------------------------------===//
969969

970-
// READ THIS: Please when adding diagnostics for region based isolation, keep
970+
// READ THIS: Please when adding diagnostics for region-based isolation, keep
971971
// them ordered in sections depending on which emitter uses it. It makes it
972972
// easier for people unfamiliar with the code to quickly see which diagnostics
973973
// are used by which of the SendNonSendable emitters use.
@@ -976,7 +976,7 @@ NOTE(sil_referencebinding_inout_binding_here, none,
976976
// Misc
977977

978978
ERROR(regionbasedisolation_unknown_pattern, none,
979-
"pattern that the region based isolation checker does not understand how to check. Please file a bug",
979+
"pattern that the region-based isolation checker does not understand how to check. Please file a bug",
980980
())
981981
NOTE(regionbasedisolation_maybe_race, none,
982982
"access can happen concurrently", ())
@@ -1098,13 +1098,13 @@ NOTE(regionbasedisolation_typed_sendneversendable_via_arg_callee, none,
10981098
// Error that is only used when the send non sendable emitter cannot discover any
10991099
// information to give a better diagnostic.
11001100
ERROR(regionbasedisolation_task_or_actor_isolated_sent, none,
1101-
"task or actor isolated value cannot be sent", ())
1101+
"task or actor-isolated value cannot be sent", ())
11021102

11031103
//===
11041104
// InOut Sending Emitter
11051105

11061106
NOTE(regionbasedisolation_inout_sending_must_be_reinitialized, none,
1107-
"'inout sending' parameter must be reinitialized before function exit with a non-actor isolated value",
1107+
"'inout sending' parameter must be reinitialized before function exit with a non-actor-isolated value",
11081108
())
11091109
ERROR(regionbasedisolation_inout_sending_cannot_be_actor_isolated, none,
11101110
"'inout sending' parameter %0 cannot be %1at end of function",

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5757,7 +5757,7 @@ NOTE(note_actor_isolated_witness,none,
57575757
"%0 %kind1 cannot satisfy %2 requirement",
57585758
(ActorIsolation, const ValueDecl *, ActorIsolation))
57595759
ERROR(actor_cannot_conform_to_global_actor_protocol,none,
5760-
"actor %0 cannot conform to global actor isolated protocol %1",
5760+
"actor %0 cannot conform to global-actor-isolated protocol %1",
57615761
(Type, Type))
57625762
NOTE(protocol_isolated_to_global_actor_here,none,
57635763
"%0 is isolated to global actor %1 here", (Type, Type))

include/swift/Option/FrontendOptions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ def platform_c_calling_convention_EQ :
14911491

14921492
def disable_sending_args_and_results_with_region_isolation : Flag<["-"],
14931493
"disable-sending-args-and-results-with-region-based-isolation">,
1494-
HelpText<"Disable sending args and results when region based isolation is enabled. Only enabled with asserts">,
1494+
HelpText<"Disable sending args and results when region-based isolation is enabled. Only enabled with asserts">,
14951495
Flags<[HelpHidden]>;
14961496

14971497
def scanner_module_validation: Flag<["-"], "scanner-module-validation">,

include/swift/SILOptimizer/Analysis/RegionAnalysis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,15 @@ class RegionAnalysisValueMap {
391391
}
392392

393393
/// Returns the value for this instruction if it isn't a fake "represenative
394-
/// value" to inject actor isolatedness. Asserts in such a case.
394+
/// value" to inject actor isolation. Asserts in such a case.
395395
SILValue getRepresentative(Element trackableValueID) const;
396396

397397
/// Returns the value for this instruction. If it is a fake "representative
398398
/// value" returns an empty SILValue.
399399
SILValue maybeGetRepresentative(Element trackableValueID) const;
400400

401401
/// Returns the value for this instruction if it isn't a fake "represenative
402-
/// value" to inject actor isolatedness. Asserts in such a case.
402+
/// value" to inject actor isolation. Asserts in such a case.
403403
RepresentativeValue getRepresentativeValue(Element trackableValueID) const;
404404

405405
/// Returns the fake "representative value" for this element if it

include/swift/SILOptimizer/Utils/PartitionUtils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class RegionAnalysisValueMap;
9393
/// The representative value of the equivalence class that makes up a tracked
9494
/// value.
9595
///
96-
/// We use a wrapper struct here so that we can inject "fake" actor isolated
96+
/// We use a wrapper struct here so that we can inject "fake" actor-isolated
9797
/// values into the regions of values that become merged into an actor by
9898
/// calling a function without a non-sendable result.
9999
class RepresentativeValue {
@@ -103,8 +103,8 @@ class RepresentativeValue {
103103

104104
/// If this is set to a SILValue then it is the actual represented value. If
105105
/// it is set to a SILInstruction, then this is a "fake" representative value
106-
/// used to inject actor isolatedness. The instruction stored is the
107-
/// instruction that introduced the actor isolated-ness.
106+
/// used to inject actor isolation. The instruction stored is the
107+
/// instruction that introduced the actor isolation.
108108
InnerType value;
109109

110110
public:

include/swift/SILOptimizer/Utils/SILIsolationInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class SILIsolationInfo {
486486
/// for the isolated values if any to not match.
487487
///
488488
/// This is useful if one has two non-Sendable values projected from the same
489-
/// actor or global actor isolated value. E.x.: two different ref_element_addr
489+
/// actor or global-actor-isolated value. E.x.: two different ref_element_addr
490490
/// from the same actor.
491491
bool hasSameIsolation(const SILIsolationInfo &other) const;
492492

lib/DriverTool/sil_opt_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ int sil_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
831831
}
832832

833833
// If we have strict concurrency set as a feature and were told to turn off
834-
// region based isolation... do so now.
834+
// region-based isolation... do so now.
835835
if (Invocation.getLangOptions().hasFeature(Feature::StrictConcurrency)) {
836836
Invocation.getLangOptions().enableFeature(Feature::RegionBasedIsolation);
837837
}

lib/SILGen/SILGenApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ FunctionTypeInfo SILGenFunction::getClosureTypeInfo(AbstractClosureExpr *expr) {
6262
auto fnType = cast<AnyFunctionType>(expr->getType()->getCanonicalType());
6363

6464
// If we have a closure expr that has inherits actor context, work around AST
65-
// issues that causes us to be able to get non-Sendable actor isolated
65+
// issues that causes us to be able to get non-Sendable actor-isolated
6666
// closures.
6767
if (auto *ce = dyn_cast<ClosureExpr>(expr)) {
6868
if (ce->inheritsActorContext() && fnType->isAsync() &&

lib/SILGen/SILGenConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void SILGenFunction::emitExpectedExecutorProlog() {
155155
}();
156156

157157
// FIXME: Avoid loading and checking the expected executor if concurrency is
158-
// unavailable. This is specifically relevant for MainActor isolated contexts,
158+
// unavailable. This is specifically relevant for MainActor-isolated contexts,
159159
// which are allowed to be available on OSes where concurrency is not
160160
// available. rdar://106827064
161161

lib/SILGen/SILGenFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ class LLVM_LIBRARY_VISIBILITY SILGenFunction
877877
FunctionTypeInfo getFunctionTypeInfo(CanAnyFunctionType fnType);
878878

879879
/// A helper method that calls getFunctionTypeInfo that also marks global
880-
/// actor isolated async closures that are not sendable as sendable.
880+
/// actor-isolated async closures that are not sendable as sendable.
881881
FunctionTypeInfo getClosureTypeInfo(AbstractClosureExpr *expr);
882882

883883
bool isEmittingTopLevelCode() { return IsEmittingTopLevelCode; }

lib/SILOptimizer/Analysis/RegionAnalysis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ struct PartitionOpBuilder {
17241724
lookupValueID(rep), lookupValueID(srcOperand->get()), srcOperand));
17251725
}
17261726

1727-
/// Mark \p value artifically as being part of an actor isolated region by
1727+
/// Mark \p value artifically as being part of an actor-isolated region by
17281728
/// introducing a new fake actor introducing representative and merging them.
17291729
void addActorIntroducingInst(SILValue sourceValue, Operand *sourceOperand,
17301730
SILIsolationInfo actorIsolation) {
@@ -1794,7 +1794,7 @@ struct PartitionOpBuilder {
17941794
namespace {
17951795

17961796
enum class TranslationSemantics {
1797-
/// An instruction that does not affect region based state or if it does we
1797+
/// An instruction that does not affect region-based state or if it does we
17981798
/// would like to error on some other use. An example would be something
17991799
/// like end_borrow, inject_enum_addr, or alloc_global. We do not produce
18001800
/// any partition op.
@@ -2474,7 +2474,7 @@ class PartitionOpTranslator {
24742474
void translateSILPartialApply(PartialApplyInst *pai) {
24752475
// First check if our partial apply is Sendable and not global actor
24762476
// isolated. In such a case, we will have emitted an earlier warning in Sema
2477-
// and can return early. If we have a global actor isolated partial_apply,
2477+
// and can return early. If we have a global-actor-isolated partial_apply,
24782478
// we can be looser and can use region isolation since we know that the
24792479
// Sendable closure will be executed serially due to the closure having to
24802480
// run on the global actor queue meaning that we do not have to worry about

lib/SILOptimizer/Mandatory/SendNonSendable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ struct UseAfterSendDiagnosticInferrer::AutoClosureWalker : ASTWalker {
10731073
continue;
10741074
}
10751075

1076-
// Otherwise, we are calling an actor isolated function in the async
1076+
// Otherwise, we are calling an actor-isolated function in the async
10771077
// let. Emit a better error.
10781078

10791079
// See if we can find a valueDecl/name for our callee so we can

lib/SILOptimizer/Utils/RegionIsolation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LoggingFlag swift::regionisolation::ENABLE_LOGGING;
2626
static llvm::cl::opt<LoggingFlag, true> // The parser
2727
RegionBasedIsolationLog(
2828
"sil-regionbasedisolation-log",
29-
llvm::cl::desc("Enable logging for SIL region based isolation "
29+
llvm::cl::desc("Enable logging for SIL region-based isolation "
3030
"diagnostics"),
3131
llvm::cl::Hidden,
3232
llvm::cl::values(

lib/SILOptimizer/Utils/SILIsolationInfo.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ SILIsolationInfo SILIsolationInfo::get(SILInstruction *inst) {
708708
}
709709
}
710710

711-
// See if we have a struct_extract from a global actor isolated type.
711+
// See if we have a struct_extract from a global-actor-isolated type.
712712
if (auto *sei = dyn_cast<StructExtractInst>(inst)) {
713713
auto varIsolation = swift::getActorIsolation(sei->getField());
714714
if (auto isolation =
@@ -729,12 +729,12 @@ SILIsolationInfo SILIsolationInfo::get(SILInstruction *inst) {
729729
varIsolation.isNonisolatedUnsafe());
730730
}
731731

732-
// See if we have an unchecked_enum_data from a global actor isolated type.
732+
// See if we have an unchecked_enum_data from a global-actor-isolated type.
733733
if (auto *uedi = dyn_cast<UncheckedEnumDataInst>(inst)) {
734734
return SILIsolationInfo::getGlobalActorIsolated(uedi, uedi->getEnumDecl());
735735
}
736736

737-
// See if we have an unchecked_enum_data from a global actor isolated type.
737+
// See if we have an unchecked_enum_data from a global-actor-isolated type.
738738
if (auto *utedi = dyn_cast<UncheckedTakeEnumDataAddrInst>(inst)) {
739739
return SILIsolationInfo::getGlobalActorIsolated(utedi,
740740
utedi->getEnumDecl());
@@ -754,7 +754,7 @@ SILIsolationInfo SILIsolationInfo::get(SILInstruction *inst) {
754754
}
755755
}
756756

757-
// See if we have a convert function from a Sendable actor isolated function,
757+
// See if we have a convert function from a Sendable actor-isolated function,
758758
// we want to treat the result of the convert function as being actor isolated
759759
// so that we cannot escape the value.
760760
//
@@ -865,7 +865,7 @@ SILIsolationInfo SILIsolationInfo::get(SILArgument *arg) {
865865
if (!SILIsolationInfo::isNonSendableType(arg->getType(), arg->getFunction()))
866866
return {};
867867

868-
// Handle a switch_enum from a global actor isolated type.
868+
// Handle a switch_enum from a global-actor-isolated type.
869869
if (auto *phiArg = dyn_cast<SILPhiArgument>(arg)) {
870870
if (auto *singleTerm = phiArg->getSingleTerminator()) {
871871
if (auto *swi = dyn_cast<SwitchEnumInst>(singleTerm)) {
@@ -913,7 +913,7 @@ SILIsolationInfo SILIsolationInfo::get(SILArgument *arg) {
913913
// disconnected so we can construct the actor value. Users cannot write
914914
// allocator functions so we just need to worry about compiler generated
915915
// code. In the case of a non-actor, we can only have an allocator that is
916-
// global actor isolated, so we will never hit this code path.
916+
// global-actor isolated, so we will never hit this code path.
917917
if (declRef.kind == SILDeclRef::Kind::Allocator) {
918918
if (auto isolation = fArg->getFunction()->getActorIsolation()) {
919919
if (isolation->isActorInstanceIsolated()) {
@@ -1068,7 +1068,7 @@ bool SILIsolationInfo::hasSameIsolation(const SILIsolationInfo &other) const {
10681068
// If either have an actor instance, and the actor instance doesn't match,
10691069
// return false.
10701070
//
1071-
// This ensures that cases like comparing two global actor isolated things
1071+
// This ensures that cases like comparing two global-actor-isolated things
10721072
// do not hit this path.
10731073
//
10741074
// It also catches cases where we have a missing actor instance.

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5173,7 +5173,7 @@ ConstraintSystem::inferKeyPathLiteralCapability(KeyPathExpr *keyPath) {
51735173
case ActorIsolation::Erased:
51745174
llvm_unreachable("storage cannot have opaque isolation");
51755175

5176-
// A reference to an actor isolated state makes key path non-Sendable.
5176+
// A reference to an actor-isolated state makes key path non-Sendable.
51775177
case ActorIsolation::ActorInstance:
51785178
case ActorIsolation::GlobalActor:
51795179
isSendable = false;

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ static bool wasLegacyEscapingUseRestriction(AbstractFunctionDecl *fn) {
17821782
return !(fn->hasAsync()); // basic case: not async = had restriction.
17831783
}
17841784

1785-
/// Note that while a direct access to the actor isolated property is not legal
1785+
/// Note that while a direct access to the actor-isolated property is not legal
17861786
/// you may want to consider introducing an accessing method for a mutation.
17871787
static void
17881788
maybeNoteMutatingMethodSuggestion(ASTContext &C,
@@ -2997,7 +2997,7 @@ namespace {
29972997
auto *patternBindingDecl = getTopPatternBindingDecl();
29982998
if (patternBindingDecl && patternBindingDecl->isAsyncLet()) {
29992999
// Defer diagnosing checking of non-Sendable types that are passed
3000-
// into async let to SIL level region based isolation.
3000+
// into async let to SIL level region-based isolation.
30013001
return;
30023002
}
30033003

@@ -4803,7 +4803,7 @@ bool ActorIsolationChecker::mayExecuteConcurrentlyWith(
48034803
// If the local function is not Sendable, its isolation differs
48044804
// from that of the context, and both contexts are actor isolated,
48054805
// then capturing non-Sendable values allows the closure to stash
4806-
// those values into actor isolated state. The original context
4806+
// those values into actor-isolated state. The original context
48074807
// may also stash those values into isolated state, enabling concurrent
48084808
// access later on.
48094809
isolatedStateMayEscape =
@@ -7828,8 +7828,8 @@ ActorReferenceResult ActorReferenceResult::forReference(
78287828
return forSameConcurrencyDomain(declIsolation, options);
78297829
}
78307830

7831-
// Initializing an actor isolated stored property with a value effectively
7832-
// passes that value from the init context into the actor isolated context.
7831+
// Initializing an actor-isolated stored property with a value effectively
7832+
// passes that value from the init context into the actor-isolated context.
78337833
// It's only okay for the value to cross isolation boundaries if the property
78347834
// type is Sendable. Note that if the init is a nonisolated actor init,
78357835
// Sendable checking is already performed on arguments at the call-site.

lib/Sema/TypeChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ TypeCheckPrimaryFileRequest::evaluate(Evaluator &eval, SourceFile *SF) const {
322322
SF->typeCheckDelayedFunctions();
323323
}
324324

325-
// If region based isolation is enabled, we diagnose unnecessary
325+
// If region-based isolation is enabled, we diagnose unnecessary
326326
// preconcurrency imports in the SIL pipeline in the
327327
// DiagnoseUnnecessaryPreconcurrencyImports pass.
328328
if (!Ctx.LangOpts.hasFeature(Feature::RegionBasedIsolation))

test/Concurrency/Runtime/actor_assume_executor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import StdlibUnittest
1818

1919
func checkAssumeMainActor(echo: MainActorEcho) /* synchronous! */ {
20-
// Echo.get("any") // error: main actor isolated, cannot perform async call here
20+
// Echo.get("any") // error: MainActor isolated, cannot perform async call here
2121
MainActor.assumeIsolated {
2222
let input = "example"
2323
let got = echo.get(input)

test/Concurrency/actor_inout_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// - can't pass it into a curried/partially applied function
1313
// - can't pass it inout to a function that doesn't directly touch it
1414
// - can't pass it into a function that was passed into the calling method
15-
// - can't call async mutating function on actor isolated state
15+
// - can't call async mutating function on actor-isolated state
1616

1717
struct Point {
1818
var x: Int

test/Concurrency/actor_isolation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,11 +1264,11 @@ func testGlobalActorInheritance() {
12641264
protocol GloballyIsolatedProto {
12651265
}
12661266

1267-
// rdar://75849035 - trying to conform an actor to a global-actor isolated protocol should result in an error
1267+
// rdar://75849035 - trying to conform an actor to a global-actor-isolated protocol should result in an error
12681268
func test_conforming_actor_to_global_actor_protocol() {
12691269
@available(SwiftStdlib 5.1, *)
12701270
actor MyValue : GloballyIsolatedProto {}
1271-
// expected-error@-1 {{actor 'MyValue' cannot conform to global actor isolated protocol 'GloballyIsolatedProto'}}
1271+
// expected-error@-1 {{actor 'MyValue' cannot conform to global-actor-isolated protocol 'GloballyIsolatedProto'}}
12721272
}
12731273

12741274
func test_nonisolated_variable() {

test/Concurrency/actor_isolation_unsafe.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class C7: C2 {
138138
protocol GloballyIsolatedProto {
139139
}
140140

141-
// rdar://75849035 - trying to conform an actor to a global-actor isolated protocol should result in an error
141+
// rdar://75849035 - trying to conform an actor to a global-actor-isolated protocol should result in an error
142142
func test_conforming_actor_to_global_actor_protocol() {
143143
actor MyValue : GloballyIsolatedProto {}
144-
// expected-error@-1 {{actor 'MyValue' cannot conform to global actor isolated protocol 'GloballyIsolatedProto'}}
144+
// expected-error@-1 {{actor 'MyValue' cannot conform to global-actor-isolated protocol 'GloballyIsolatedProto'}}
145145
}

test/Concurrency/flow_isolation_nonstrict.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class NonSendableType {
77
}
88

99
// rdar://94699928 - don't emit sendable diagnostics in non-'complete' mode
10-
// for deinits of actor or global-actor isolated types
10+
// for deinits of actor- or global-actor-isolated types
1111

1212
@available(SwiftStdlib 5.1, *)
1313
@MainActor class AwesomeUIView {}

test/Concurrency/global_actor_function_types.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Emit SIL with targeted concurrency.
88
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted -verify-additional-prefix without-transferring-
99

10-
// Emit SIL with strict concurrency + region based isolation + transferring
10+
// Emit SIL with strict concurrency + region-based isolation + transferring
1111
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -verify-additional-prefix complete-tns-
1212

1313
// REQUIRES: concurrency
@@ -328,7 +328,7 @@ func stripActor(_ expr: @Sendable @autoclosure () -> (() -> ())) async {
328328
}
329329

330330
// We used to not emit an error here with strict-concurrency enabled since we
331-
// were inferring the async let to main actor isolated (which was incorrect). We
331+
// were inferring the async let to MainActor isolated (which was incorrect). We
332332
// now always treat async let as non-isolated, so we get the same error in all
333333
// contexts.
334334
@MainActor func exampleWhereConstraintSolverHasWrongDeclContext_v2() async -> Int {

0 commit comments

Comments
 (0)