@@ -4231,8 +4231,8 @@ ERROR(throwing_interpolation_without_try,none,
42314231 " interpolation can throw but is not marked with 'try'" , ())
42324232ERROR(throwing_call_without_try,none,
42334233 " call can throw but is not marked with 'try'" , ())
4234- ERROR(throwing_async_let_without_try ,none,
4235- " reading 'async let' can throw but is not marked with 'try'" , ())
4234+ ERROR(throwing_spawn_let_without_try ,none,
4235+ " reading 'spawn let' can throw but is not marked with 'try'" , ())
42364236ERROR(throwing_prop_access_without_try,none,
42374237 " property access can throw but is not marked with 'try'" , ())
42384238ERROR(throwing_subscript_access_without_try,none,
@@ -4261,8 +4261,8 @@ NOTE(async_access_without_await,none,
42614261
42624262NOTE(async_call_without_await_in_autoclosure,none,
42634263 " call is 'async' in an autoclosure argument" , ())
4264- NOTE(async_call_without_await_in_async_let ,none,
4265- " call is 'async' in an 'async let' initializer" , ())
4264+ NOTE(async_call_without_await_in_spawn_let ,none,
4265+ " call is 'async' in an 'spawn let' initializer" , ())
42664266
42674267WARNING(no_async_in_await,none,
42684268 " no 'async' operations occur within 'await' expression" , ())
@@ -4275,7 +4275,7 @@ ERROR(await_in_illegal_context,none,
42754275 " %select{<<ERROR>>|a default argument|a property wrapper initializer|a property initializer|a global variable initializer|an enum case raw value|a catch pattern|a catch guard expression|a defer body}0" ,
42764276 (unsigned ))
42774277ERROR(async_in_nonasync_function,none,
4278- " %select{'async'|'async' call|'await'|'async let'|'async' property access|'async' subscript access}0 in "
4278+ " %select{'async'|'async' call|'await'|'spawn let'|'async' property access|'async' subscript access}0 in "
42794279 " %select{a function|an autoclosure}1 that does not support concurrency" ,
42804280 (unsigned , bool ))
42814281NOTE(note_add_async_to_function,none,
@@ -4302,18 +4302,21 @@ NOTE(protocol_witness_async_conflict,none,
43024302ERROR(async_autoclosure_nonasync_function,none,
43034303 " 'async' autoclosure parameter in a non-'async' function" , ())
43044304
4305- ERROR(async_not_let,none,
4306- " 'async' can only be used with 'let' declarations" , ())
4307- ERROR(async_let_not_local,none,
4308- " 'async let' can only be used on local declarations" , ())
4309- ERROR(async_let_not_initialized,none,
4310- " 'async let' binding requires an initializer expression" , ())
4311- ERROR(async_let_no_variables,none,
4312- " 'async let' requires at least one named variable" , ())
4313- NOTE(async_let_without_await,none,
4314- " reference to async let %0 is 'async'" , (DeclName))
4315- ERROR(async_let_in_illegal_context,none,
4316- " async let %0 cannot be referenced in "
4305+ WARNING(async_let_is_spawn_let,none,
4306+ " 'async let' is now 'spawn let'" , ())
4307+
4308+ ERROR(spawn_not_let,none,
4309+ " 'spawn' can only be used with 'let' declarations" , ())
4310+ ERROR(spawn_let_not_local,none,
4311+ " 'spawn let' can only be used on local declarations" , ())
4312+ ERROR(spawn_let_not_initialized,none,
4313+ " 'spawn let' binding requires an initializer expression" , ())
4314+ ERROR(spawn_let_no_variables,none,
4315+ " 'spawn let' requires at least one named variable" , ())
4316+ NOTE(spawn_let_without_await,none,
4317+ " reference to spawn let %0 is 'async'" , (DeclName))
4318+ ERROR(spawn_let_in_illegal_context,none,
4319+ " spawn let %0 cannot be referenced in "
43174320 " %select{<<ERROR>>|a default argument|a property wrapper initializer|a property initializer|a global variable initializer|an enum case raw value|a catch pattern|a catch guard expression|a defer body}1" ,
43184321 (DeclName, unsigned ))
43194322
@@ -4403,8 +4406,8 @@ ERROR(actor_isolated_from_concurrent_closure,none,
44034406ERROR(actor_isolated_from_concurrent_function,none,
44044407 " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from a concurrent function" ,
44054408 (DescriptiveDeclKind, DeclName, unsigned ))
4406- ERROR(actor_isolated_from_async_let ,none,
4407- " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from 'async let' initializer" ,
4409+ ERROR(actor_isolated_from_spawn_let ,none,
4410+ " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from 'spawn let' initializer" ,
44084411 (DescriptiveDeclKind, DeclName, unsigned ))
44094412ERROR(actor_isolated_keypath_component,none,
44104413 " cannot form key path to actor-isolated %0 %1" ,
0 commit comments