Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest removing redundant arguments in format!() #115324

Merged
merged 12 commits into from
Oct 23, 2023
Merged
Prev Previous commit
Keep fluent slugs in alphabetical order
  • Loading branch information
francorbacho committed Oct 5, 2023
commit cbc6b65d9a4a404392a928dfc200a7616cfc2c98
4 changes: 2 additions & 2 deletions compiler/rustc_builtin_macros/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ builtin_macros_format_positional_after_named = positional arguments cannot follo
.label = positional arguments must be before named arguments
.named_args = named argument

builtin_macros_format_remove_raw_ident = remove the `r#`

builtin_macros_format_redundant_args = redundant {$n ->
[one] argument
*[more] arguments
Expand All @@ -153,6 +151,8 @@ builtin_macros_format_redundant_args = redundant {$n ->
}
.suggestion = this can be removed

builtin_macros_format_remove_raw_ident = remove the `r#`

builtin_macros_format_requires_string = requires at least a format string argument

builtin_macros_format_string_invalid = invalid format string: {$desc}
Expand Down
Loading