Skip to content

Commit fa77c81

Browse files
authored
Unrolled build for rust-lang#127407
Rollup merge of rust-lang#127407 - estebank:parser-suggestions, r=oli-obk Make parse error suggestions verbose and fix spans Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
2 parents eb72697 + 71f16bd commit fa77c81

File tree

166 files changed

+3052
-777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+3052
-777
lines changed

compiler/rustc_parse/messages.ftl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parse_add_paren = try adding parentheses
22
33
parse_ambiguous_range_pattern = the range pattern here has ambiguous interpretation
4-
.suggestion = add parentheses to clarify the precedence
4+
parse_ambiguous_range_pattern_suggestion = add parentheses to clarify the precedence
55
66
parse_array_brackets_instead_of_braces = this is a block expression, not an array
77
.suggestion = to make an array, use square brackets instead of curly braces
@@ -323,10 +323,10 @@ parse_incorrect_semicolon =
323323
.suggestion = remove this semicolon
324324
.help = {$name} declarations are not followed by a semicolon
325325
326-
parse_incorrect_use_of_await =
327-
incorrect use of `await`
326+
parse_incorrect_use_of_await = incorrect use of `await`
328327
.parentheses_suggestion = `await` is not a method call, remove the parentheses
329-
.postfix_suggestion = `await` is a postfix operation
328+
329+
parse_incorrect_use_of_await_postfix_suggestion = `await` is a postfix operation
330330
331331
parse_incorrect_visibility_restriction = incorrect visibility restriction
332332
.help = some possible visibility restrictions are:
@@ -644,7 +644,7 @@ parse_parentheses_with_struct_fields = invalid `struct` delimiters or `fn` call
644644
.suggestion_no_fields_for_fn = if `{$type}` is a function, use the arguments directly
645645
646646
parse_parenthesized_lifetime = parenthesized lifetime bounds are not supported
647-
.suggestion = remove the parentheses
647+
parse_parenthesized_lifetime_suggestion = remove the parentheses
648648
649649
parse_path_single_colon = path separator must be a double colon
650650
.suggestion = use a double colon instead

0 commit comments

Comments
 (0)