@@ -2174,9 +2174,6 @@ NOTE(protocol_witness_settable_conflict,none,
2174
2174
" candidate is not settable, but protocol requires it" , ())
2175
2175
NOTE(protocol_witness_rethrows_conflict,none,
2176
2176
" candidate is not 'rethrows', but protocol requires it" , ())
2177
- NOTE(protocol_witness_async_conflict,none,
2178
- " candidate is %select{not |}0'async', but protocol requirement is%select{| not}0" ,
2179
- (bool ))
2180
2177
NOTE(protocol_witness_throws_conflict,none,
2181
2178
" candidate throws, but protocol does not allow it" , ())
2182
2179
NOTE(protocol_witness_not_objc,none,
@@ -4037,6 +4034,16 @@ NOTE(note_error_to_optional,none,
4037
4034
" did you mean to handle error as optional value?" , ())
4038
4035
NOTE(note_disable_error_propagation,none,
4039
4036
" did you mean to disable error propagation?" , ())
4037
+
4038
+ WARNING(no_throw_in_try,none,
4039
+ " no calls to throwing functions occur within 'try' expression" , ())
4040
+
4041
+ WARNING(no_throw_in_do_with_catch,none,
4042
+ " 'catch' block is unreachable because no errors are thrown in 'do' block" , ())
4043
+
4044
+ // ------------------------------------------------------------------------------
4045
+ // MARK: Concurrency
4046
+ // ------------------------------------------------------------------------------
4040
4047
ERROR(async_call_without_await,none,
4041
4048
" call is 'async' but is not marked with 'await'" , ())
4042
4049
ERROR(async_call_without_await_in_autoclosure,none,
@@ -4057,12 +4064,15 @@ ERROR(async_in_nonasync_function,none,
4057
4064
(bool , bool ))
4058
4065
NOTE(note_add_async_to_function,none,
4059
4066
" add 'async' to function %0 to make it asynchronous" , (DeclName))
4060
-
4061
- WARNING(no_throw_in_try,none,
4062
- " no calls to throwing functions occur within 'try' expression" , ())
4063
-
4064
- WARNING(no_throw_in_do_with_catch,none,
4065
- " 'catch' block is unreachable because no errors are thrown in 'do' block" , ())
4067
+ ERROR(not_objc_function_async,none,
4068
+ " 'async' function cannot be represented in Objective-C" , ())
4069
+ NOTE(not_objc_function_type_async,none,
4070
+ " 'async' function types cannot be represented in Objective-C" , ())
4071
+ NOTE(protocol_witness_async_conflict,none,
4072
+ " candidate is %select{not |}0'async', but protocol requirement is%select{| not}0" ,
4073
+ (bool ))
4074
+ ERROR(async_autoclosure_nonasync_function,none,
4075
+ " 'async' autoclosure parameter in a non-'async' function" , ())
4066
4076
4067
4077
// ------------------------------------------------------------------------------
4068
4078
// MARK: Type Check Types
@@ -4418,10 +4428,6 @@ NOTE(not_objc_generic_type_param,none,
4418
4428
NOTE(not_objc_function_type_param,none,
4419
4429
" function types cannot be represented in Objective-C unless their "
4420
4430
" parameters and returns can be" , ())
4421
- ERROR(not_objc_function_async,none,
4422
- " 'async' function cannot be represented in Objective-C" , ())
4423
- NOTE(not_objc_function_type_async,none,
4424
- " 'async' function types cannot be represented in Objective-C" , ())
4425
4431
NOTE(not_objc_function_type_throwing,none,
4426
4432
" throwing function types cannot be represented in Objective-C" , ())
4427
4433
NOTE(objc_inferring_on_objc_protocol_member,none,
0 commit comments