Skip to content

Commit 1d52c9c

Browse files
committed
AST: Move some #available parsing diagnostics to the right section of DiagnosticsParse.def.
1 parent 78430f4 commit 1d52c9c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,6 @@ WARNING(parameter_unnamed_warn,none,
990990
ERROR(parameter_curry_syntax_removed,none,
991991
"cannot have more than one parameter list", ())
992992

993-
ERROR(availability_cannot_be_mixed,none,
994-
"#available and #unavailable cannot be in the same statement", ())
995-
996-
ERROR(false_available_is_called_unavailable,none,
997-
"#available cannot be used as an expression, did you mean to use '#unavailable'?", ())
998-
999993
ERROR(initializer_as_typed_pattern,none,
1000994
"unexpected initializer in pattern; did you mean to use '='?", ())
1001995

@@ -1935,6 +1929,12 @@ ERROR(pound_available_package_description_not_allowed, none,
19351929
ERROR(availability_query_repeated_platform, none,
19361930
"version for '%0' already specified", (StringRef))
19371931

1932+
ERROR(availability_cannot_be_mixed,none,
1933+
"#available and #unavailable cannot be in the same statement", ())
1934+
1935+
ERROR(false_available_is_called_unavailable,none,
1936+
"#available cannot be used as an expression, did you mean to use '#unavailable'?", ())
1937+
19381938
ERROR(attr_requires_concurrency, none,
19391939
"'%0' %select{attribute|modifier}1 is only valid when experimental "
19401940
"concurrency is enabled",

0 commit comments

Comments
 (0)