Skip to content

Commit 8362643

Browse files
authored
Merge pull request swiftlang#33317 from xedin/adjust-yaml-diags
[Diagnostics] NFC: Adjust `en.yaml` to mirror diagnostics in `.def` f…
2 parents 9b2fd2d + d2cb1ca commit 8362643

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

localization/diagnostics/en.yaml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@
147147
msg: >-
148148
unrecognized accessor kind '%0' in SDK node
149149
150-
- id: pound_source_location_creates_pound_file_conflicts
150+
- id: source_location_creates_file_id_conflicts
151151
msg: >-
152-
'#sourceLocation' directive produces '#file' string of '%0', which
153-
conflicts with '#file' strings produced by other paths in the module
152+
'#sourceLocation' directive produces '#fileID' string of '%0', which
153+
conflicts with '#fileID' strings produced by other paths in the module
154154
155155
- id: fixit_correct_source_location_file
156156
msg: >-
@@ -1343,13 +1343,9 @@
13431343
only function declarations may be marked 'rethrows'; did you mean
13441344
'throws'?
13451345
1346-
- id: throws_in_wrong_position
1346+
- id: async_or_throws_in_wrong_position
13471347
msg: >-
1348-
'throws' may only occur before '->'
1349-
1350-
- id: rethrows_in_wrong_position
1351-
msg: >-
1352-
'rethrows' may only occur before '->'
1348+
%select{'throws'|'rethrows'|'async'}0 may only occur before '->'
13531349
13541350
- id: throw_in_function_type
13551351
msg: >-
@@ -7132,14 +7128,6 @@
71327128
%0 is not a 'func', 'init', 'subscript', or 'var' computed property
71337129
declaration
71347130
7135-
- id: autodiff_attr_accessor_not_found
7136-
msg: >-
7137-
%0 does not have a '%1' accessor
7138-
7139-
- id: autodiff_attr_original_decl_none_valid_found
7140-
msg: >-
7141-
could not find function %0 with expected type %1
7142-
71437131
- id: autodiff_attr_original_decl_not_same_type_context
71447132
msg: >-
71457133
%0 is not defined in the current type context

0 commit comments

Comments
 (0)