File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ struct ASTContext::Implementation {
325
325
// / The declaration of 'AsyncIteratorProtocol.next()'.
326
326
FuncDecl *AsyncIteratorNext = nullptr ;
327
327
328
- // / The declaration of 'AsyncIteratorProtocol.next(_ :)' that takes
328
+ // / The declaration of 'AsyncIteratorProtocol.next(isolation :)' that takes
329
329
// / an actor isolation.
330
330
FuncDecl *AsyncIteratorNextIsolated = nullptr ;
331
331
Original file line number Diff line number Diff line change @@ -1396,7 +1396,7 @@ class ApplyClassifier {
1396
1396
isRethrowLikeTypedThrows (fnRef.getFunction ())) {
1397
1397
// If we are in a rethrowing context and the function we're referring
1398
1398
// to is a rethrow-like function using typed throws or we are
1399
- // calling the next() or next(_ :) of an async iterator,
1399
+ // calling the next() or next(isolation :) of an async iterator,
1400
1400
// then look at all of the closure arguments.
1401
1401
LLVM_FALLTHROUGH;
1402
1402
} else {
Original file line number Diff line number Diff line change @@ -3284,7 +3284,7 @@ FuncDecl *TypeChecker::getForEachIteratorNextFunction(
3284
3284
if (!isAsync)
3285
3285
return ctx.getIteratorNext ();
3286
3286
3287
- // If AsyncIteratorProtocol.next(_ :) isn't available at all,
3287
+ // If AsyncIteratorProtocol.next(isolation :) isn't available at all,
3288
3288
// we're stuck using AsyncIteratorProtocol.next().
3289
3289
auto nextElement = ctx.getAsyncIteratorNextIsolated ();
3290
3290
if (!nextElement)
@@ -3295,11 +3295,11 @@ FuncDecl *TypeChecker::getForEachIteratorNextFunction(
3295
3295
if (enclosingUnsafeInheritsExecutor (dc))
3296
3296
return ctx.getAsyncIteratorNext ();
3297
3297
3298
- // If availability checking is disabled, use next(_ :).
3298
+ // If availability checking is disabled, use next(isolation :).
3299
3299
if (ctx.LangOpts .DisableAvailabilityChecking || loc.isInvalid ())
3300
3300
return nextElement;
3301
3301
3302
- // We can only call next(_ :) if we are in an availability context
3302
+ // We can only call next(isolation :) if we are in an availability context
3303
3303
// that supports typed throws.
3304
3304
auto availability = overApproximateAvailabilityAtLocation (loc, dc);
3305
3305
if (availability.isContainedIn (ctx.getTypedThrowsAvailability ()))
Original file line number Diff line number Diff line change 3
3
4
4
@available ( SwiftStdlib 5 . 1 , * )
5
5
func f< S: AsyncSequence > ( s: S ) async throws {
6
- // CHECK-NOT: next(_ :)
6
+ // CHECK-NOT: next(isolation :)
7
7
// CHECK: next()
8
8
for try await x in s { }
9
9
}
You can’t perform that action at this time.
0 commit comments