fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1parse_add_paren = try adding parentheses 2 3parse_ambiguous_missing_keyword_for_item_definition = missing `fn` or `struct` for function or struct definition 4 .suggestion = if you meant to call a macro, try 5 .help = if you meant to call a macro, remove the `pub` and add a trailing `!` after the identifier 6 7parse_ambiguous_range_pattern = the range pattern here has ambiguous interpretation 8 .suggestion = add parentheses to clarify the precedence 9 10parse_array_brackets_instead_of_braces = this is a block expression, not an array 11 .suggestion = to make an array, use square brackets instead of curly braces 12 13parse_assignment_else_not_allowed = <assignment> ... else {"{"} ... {"}"} is not allowed 14 15parse_assoc_lifetime = associated lifetimes are not supported 16 .label = the lifetime is given here 17 .help = if you meant to specify a trait object, write `dyn Trait + 'lifetime` 18 19parse_associated_static_item_not_allowed = associated `static` items are not allowed 20 21parse_async_block_in_2015 = `async` blocks are only allowed in Rust 2018 or later 22 23parse_async_fn_in_2015 = `async fn` is not permitted in Rust 2015 24 .label = to use `async fn`, switch to Rust 2018 or later 25 26parse_async_move_block_in_2015 = `async move` blocks are only allowed in Rust 2018 or later 27 28parse_async_move_order_incorrect = the order of `move` and `async` is incorrect 29 .suggestion = try switching the order 30 31parse_attr_after_generic = trailing attribute after generic parameter 32 .label = attributes must go before parameters 33 34parse_attr_without_generics = attribute without generic parameters 35 .label = attributes are only permitted when preceding parameters 36 37parse_attribute_on_param_type = attributes cannot be applied to a function parameter's type 38 .label = attributes are not allowed here 39 40parse_bad_assoc_type_bounds = bounds on associated types do not belong here 41 .label = belongs in `where` clause 42 43parse_bad_item_kind = {$descr} is not supported in {$ctx} 44 .help = consider moving the {$descr} out to a nearby module scope 45 46parse_bad_return_type_notation_dotdot = 47 return type notation uses `()` instead of `(..)` for elided arguments 48 .suggestion = remove the `..` 49 50parse_bad_return_type_notation_output = 51 return type not allowed with return type notation 52 .suggestion = remove the return type 53 54parse_bare_cr = {$double_quotes -> 55 [true] bare CR not allowed in string, use `\r` instead 56 *[false] character constant must be escaped: `\r` 57 } 58 .escape = escape the character 59 60parse_bare_cr_in_raw_string = bare CR not allowed in raw string 61 62parse_bounds_not_allowed_on_trait_aliases = bounds are not allowed on trait aliases 63 64parse_box_not_pat = expected pattern, found {$descr} 65 .note = `box` is a reserved keyword 66 .suggestion = escape `box` to use it as an identifier 67 68parse_box_syntax_removed = `box_syntax` has been removed 69 .suggestion = use `Box::new()` instead 70 71parse_cannot_be_raw_ident = `{$ident}` cannot be a raw identifier 72 73parse_catch_after_try = keyword `catch` cannot follow a `try` block 74 .help = try using `match` on the result of the `try` block instead 75 76parse_cfg_attr_bad_delim = wrong `cfg_attr` delimiters 77parse_colon_as_semi = statements are terminated with a semicolon 78 .suggestion = use a semicolon instead 79 80parse_comma_after_base_struct = cannot use a comma after the base struct 81 .note = the base struct must always be the last field 82 .suggestion = remove this comma 83 84parse_comparison_interpreted_as_generic = 85 `<` is interpreted as a start of generic arguments for `{$type}`, not a comparison 86 .label_args = interpreted as generic arguments 87 .label_comparison = not interpreted as comparison 88 .suggestion = try comparing the cast value 89 90parse_comparison_operators_cannot_be_chained = comparison operators cannot be chained 91 .sugg_parentheses_for_function_args = or use `(...)` if you meant to specify fn arguments 92 .sugg_split_comparison = split the comparison into two 93 .sugg_parenthesize = parenthesize the comparison 94parse_compound_assignment_expression_in_let = can't reassign to an uninitialized variable 95 .suggestion = initialize the variable 96 .help = if you meant to overwrite, remove the `let` binding 97 98parse_const_bounds_missing_tilde = const bounds must start with `~` 99 .suggestion = add `~` 100 101parse_const_generic_without_braces = expressions must be enclosed in braces to be used as const generic arguments 102 .suggestion = enclose the `const` expression in braces 103 104parse_const_global_cannot_be_mutable = const globals cannot be mutable 105 .label = cannot be mutable 106 .suggestion = you might want to declare a static instead 107 108parse_const_let_mutually_exclusive = `const` and `let` are mutually exclusive 109 .suggestion = remove `let` 110 111parse_cr_doc_comment = bare CR not allowed in {$block -> 112 [true] block doc-comment 113 *[false] doc-comment 114} 115 116parse_default_not_followed_by_item = `default` is not followed by an item 117 .label = the `default` qualifier 118 .note = only `fn`, `const`, `type`, or `impl` items may be prefixed by `default` 119 120parse_do_catch_syntax_removed = found removed `do catch` syntax 121 .note = following RFC #2388, the new non-placeholder syntax is `try` 122 .suggestion = replace with the new syntax 123 124parse_doc_comment_does_not_document_anything = found a documentation comment that doesn't document anything 125 .help = doc comments must come before what they document, if a comment was intended use `//` 126 .suggestion = missing comma here 127 128parse_doc_comment_on_param_type = documentation comments cannot be applied to a function parameter's type 129 .label = doc comments are not allowed here 130 131parse_dot_dot_dot_for_remaining_fields = expected field pattern, found `{$token_str}` 132 .suggestion = to omit remaining fields, use `..` 133 134parse_dot_dot_dot_range_to_pattern_not_allowed = range-to patterns with `...` are not allowed 135 .suggestion = use `..=` instead 136 137parse_dotdotdot = unexpected token: `...` 138 .suggest_exclusive_range = use `..` for an exclusive range 139 .suggest_inclusive_range = or `..=` for an inclusive range 140 141parse_dotdotdot_rest_pattern = unexpected `...` 142 .label = not a valid pattern 143 .suggestion = for a rest pattern, use `..` instead of `...` 144 145parse_double_colon_in_bound = expected `:` followed by trait or lifetime 146 .suggestion = use single colon 147 148parse_dyn_after_mut = `mut` must precede `dyn` 149 .suggestion = place `mut` before `dyn` 150 151parse_empty_exponent_float = expected at least one digit in exponent 152 153parse_empty_unicode_escape = empty unicode escape 154 .label = this escape must have at least 1 hex digit 155 156parse_enum_pattern_instead_of_identifier = expected identifier, found enum pattern 157 158parse_enum_struct_mutually_exclusive = `enum` and `struct` are mutually exclusive 159 .suggestion = replace `enum struct` with 160 161parse_eq_field_init = expected `:`, found `=` 162 .suggestion = replace equals symbol with a colon 163 164parse_equals_struct_default = default values on `struct` fields aren't supported 165 .suggestion = remove this unsupported default value 166 167parse_escape_only_char = {$byte -> 168 [true] byte 169 *[false] character 170 } constant must be escaped: `{$escaped_msg}` 171 .escape = escape the character 172 173parse_expect_dotdot_not_dotdotdot = expected `..`, found `...` 174 .suggestion = use `..` to fill in the rest of the fields 175 176parse_expect_eq_instead_of_eqeq = expected `=`, found `==` 177 .suggestion = consider using `=` here 178 179parse_expect_label_found_ident = expected a label, found an identifier 180 .suggestion = labels start with a tick 181 182parse_expect_path = expected a path 183 184parse_expected_binding_left_of_at = left-hand side of `@` must be a binding 185 .label_lhs = interpreted as a pattern, not a binding 186 .label_rhs = also a pattern 187 .note = bindings are `x`, `mut x`, `ref x`, and `ref mut x` 188 189parse_expected_builtin_ident = expected identifier after `builtin #` 190 191parse_expected_comma_after_pattern_field = expected `,` 192 193parse_expected_else_block = expected `{"{"}`, found {$first_tok} 194 .label = expected an `if` or a block after this `else` 195 .suggestion = add an `if` if this is the condition of a chained `else if` statement 196 197parse_expected_expression_found_let = expected expression, found `let` statement 198 .note = only supported directly in conditions of `if` and `while` expressions 199 .not_supported_or = `||` operators are not supported in let chain expressions 200 .not_supported_parentheses = `let`s wrapped in parentheses are not supported in a context with let chains 201 202parse_expected_fn_path_found_fn_keyword = expected identifier, found keyword `fn` 203 .suggestion = use `Fn` to refer to the trait 204 205parse_expected_identifier = expected identifier 206 207parse_expected_identifier_found_doc_comment = expected identifier, found doc comment 208parse_expected_identifier_found_doc_comment_str = expected identifier, found doc comment `{$token}` 209parse_expected_identifier_found_keyword = expected identifier, found keyword 210parse_expected_identifier_found_keyword_str = expected identifier, found keyword `{$token}` 211parse_expected_identifier_found_reserved_identifier = expected identifier, found reserved identifier 212parse_expected_identifier_found_reserved_identifier_str = expected identifier, found reserved identifier `{$token}` 213parse_expected_identifier_found_reserved_keyword = expected identifier, found reserved keyword 214parse_expected_identifier_found_reserved_keyword_str = expected identifier, found reserved keyword `{$token}` 215parse_expected_identifier_found_str = expected identifier, found `{$token}` 216 217parse_expected_mut_or_const_in_raw_pointer_type = expected `mut` or `const` keyword in raw pointer type 218 .suggestion = add `mut` or `const` here 219 220parse_expected_semi_found_doc_comment_str = expected `;`, found doc comment `{$token}` 221parse_expected_semi_found_keyword_str = expected `;`, found keyword `{$token}` 222parse_expected_semi_found_reserved_identifier_str = expected `;`, found reserved identifier `{$token}` 223parse_expected_semi_found_reserved_keyword_str = expected `;`, found reserved keyword `{$token}` 224parse_expected_semi_found_str = expected `;`, found `{$token}` 225 226parse_expected_statement_after_outer_attr = expected statement after outer attribute 227 228parse_expected_trait_in_trait_impl_found_type = expected a trait, found type 229 230parse_extern_crate_name_with_dashes = crate name using dashes are not valid in `extern crate` statements 231 .label = dash-separated idents are not valid 232 .suggestion = if the original crate name uses dashes you need to use underscores in the code 233 234parse_extern_item_cannot_be_const = extern items cannot be `const` 235 .suggestion = try using a static value 236 .note = for more information, visit https://doc.rust-lang.org/std/keyword.extern.html 237 238parse_extra_if_in_let_else = remove the `if` if you meant to write a `let...else` statement 239 240parse_extra_impl_keyword_in_trait_impl = unexpected `impl` keyword 241 .suggestion = remove the extra `impl` 242 .note = this is parsed as an `impl Trait` type, but a trait is expected at this position 243 244 245parse_field_expression_with_generic = field expressions cannot have generic arguments 246 247parse_float_literal_requires_integer_part = float literals must have an integer part 248 .suggestion = must have an integer part 249 250parse_float_literal_unsupported_base = {$base} float literal is not supported 251 252parse_fn_pointer_cannot_be_async = an `fn` pointer type cannot be `async` 253 .label = `async` because of this 254 .suggestion = remove the `async` qualifier 255 256parse_fn_pointer_cannot_be_const = an `fn` pointer type cannot be `const` 257 .label = `const` because of this 258 .suggestion = remove the `const` qualifier 259 260parse_fn_ptr_with_generics = function pointer types may not have generic parameters 261 .suggestion = consider moving the lifetime {$arity -> 262 [one] parameter 263 *[other] parameters 264 } to {$for_param_list_exists -> 265 [true] the 266 *[false] a 267 } `for` parameter list 268 269parse_forgot_paren = perhaps you forgot parentheses? 270 271parse_found_expr_would_be_stmt = expected expression, found `{$token}` 272 .label = expected expression 273 274parse_function_body_equals_expr = function body cannot be `= expression;` 275 .suggestion = surround the expression with `{"{"}` and `{"}"}` instead of `=` and `;` 276 277parse_generic_args_in_pat_require_turbofish_syntax = generic args in patterns require the turbofish syntax 278 279parse_generic_parameters_without_angle_brackets = generic parameters without surrounding angle brackets 280 .suggestion = surround the type parameters with angle brackets 281 282parse_generics_in_path = unexpected generic arguments in path 283 284parse_help_set_edition_cargo = set `edition = "{$edition}"` in `Cargo.toml` 285parse_help_set_edition_standalone = pass `--edition {$edition}` to `rustc` 286parse_if_expression_missing_condition = missing condition for `if` expression 287 .condition_label = expected condition here 288 .block_label = if this block is the condition of the `if` expression, then it must be followed by another block 289 290parse_if_expression_missing_then_block = this `if` expression is missing a block after the condition 291 .add_then_block = add a block here 292 .condition_possibly_unfinished = this binary operation is possibly unfinished 293 294parse_in_in_typo = 295 expected iterable, found keyword `in` 296 .suggestion = remove the duplicated `in` 297 298parse_inappropriate_default = {$article} {$descr} cannot be `default` 299 .label = `default` because of this 300 .note = only associated `fn`, `const`, and `type` items can be `default` 301 302parse_inclusive_range_extra_equals = unexpected `=` after inclusive range 303 .suggestion_remove_eq = use `..=` instead 304 .note = inclusive ranges end with a single equals sign (`..=`) 305 306parse_inclusive_range_match_arrow = unexpected `>` after inclusive range 307 .label = this is parsed as an inclusive range `..=` 308 .suggestion = add a space between the pattern and `=>` 309 310parse_inclusive_range_no_end = inclusive range with no end 311 .suggestion_open_range = use `..` instead 312 .note = inclusive ranges must be bounded at the end (`..=b` or `a..=b`) 313 314parse_incorrect_parens_trait_bounds = incorrect parentheses around trait bounds 315parse_incorrect_parens_trait_bounds_sugg = fix the parentheses 316 317parse_incorrect_semicolon = 318 expected item, found `;` 319 .suggestion = remove this semicolon 320 .help = {$name} declarations are not followed by a semicolon 321 322parse_incorrect_use_of_await = 323 incorrect use of `await` 324 .parentheses_suggestion = `await` is not a method call, remove the parentheses 325 .postfix_suggestion = `await` is a postfix operation 326 327parse_incorrect_visibility_restriction = incorrect visibility restriction 328 .help = some possible visibility restrictions are: 329 `pub(crate)`: visible only on the current crate 330 `pub(super)`: visible only in the current module's parent 331 `pub(in path::to::module)`: visible only on the specified path 332 .suggestion = make this visible only to module `{$inner_str}` with `in` 333 334parse_inner_attr_explanation = inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files 335parse_inner_attr_not_permitted = an inner attribute is not permitted in this context 336 .label_does_not_annotate_this = {parse_label_inner_attr_does_not_annotate_this} 337 .sugg_change_inner_to_outer = {parse_sugg_change_inner_attr_to_outer} 338 339parse_inner_attr_not_permitted_after_outer_attr = an inner attribute is not permitted following an outer attribute 340 .label_attr = not permitted following an outer attribute 341 .label_prev_attr = previous outer attribute 342 .label_does_not_annotate_this = {parse_label_inner_attr_does_not_annotate_this} 343 .sugg_change_inner_to_outer = {parse_sugg_change_inner_attr_to_outer} 344 345parse_inner_attr_not_permitted_after_outer_doc_comment = an inner attribute is not permitted following an outer doc comment 346 .label_attr = not permitted following an outer doc comment 347 .label_prev_doc_comment = previous doc comment 348 .label_does_not_annotate_this = {parse_label_inner_attr_does_not_annotate_this} 349 .sugg_change_inner_to_outer = {parse_sugg_change_inner_attr_to_outer} 350 351parse_inner_doc_comment_not_permitted = expected outer doc comment 352 .note = inner doc comments like this (starting with `//!` or `/*!`) can only appear before items 353 .suggestion = you might have meant to write a regular comment 354 .label_does_not_annotate_this = the inner doc comment doesn't annotate this {$item} 355 .sugg_change_inner_to_outer = to annotate the {$item}, change the doc comment from inner to outer style 356 357parse_invalid_block_macro_segment = cannot use a `block` macro fragment here 358 .label = the `block` fragment is within this context 359 .suggestion = wrap this in another block 360 361parse_invalid_char_in_escape = {parse_invalid_char_in_escape_msg}: `{$ch}` 362 .label = {parse_invalid_char_in_escape_msg} 363 364parse_invalid_char_in_escape_msg = invalid character in {$is_hex -> 365 [true] numeric character 366 *[false] unicode 367 } escape 368 369parse_invalid_comparison_operator = invalid comparison operator `{$invalid}` 370 .use_instead = `{$invalid}` is not a valid comparison operator, use `{$correct}` 371 .spaceship_operator_invalid = `<=>` is not a valid comparison operator, use `std::cmp::Ordering` 372 373parse_invalid_curly_in_let_else = right curly brace `{"}"}` before `else` in a `let...else` statement not allowed 374parse_invalid_digit_literal = invalid digit for a base {$base} literal 375 376parse_invalid_dyn_keyword = invalid `dyn` keyword 377 .help = `dyn` is only needed at the start of a trait `+`-separated list 378 .suggestion = remove this keyword 379 380parse_invalid_expression_in_let_else = a `{$operator}` expression cannot be directly assigned in `let...else` 381parse_invalid_identifier_with_leading_number = identifiers cannot start with a number 382 383parse_invalid_interpolated_expression = invalid interpolated expression 384 385parse_invalid_literal_suffix = suffixes on {$kind} literals are invalid 386 .label = invalid suffix `{$suffix}` 387 388parse_invalid_literal_suffix_on_tuple_index = suffixes on a tuple index are invalid 389 .label = invalid suffix `{$suffix}` 390 .tuple_exception_line_1 = `{$suffix}` is *temporarily* accepted on tuple index fields as it was incorrectly accepted on stable for a few releases 391 .tuple_exception_line_2 = on proc macros, you'll want to use `syn::Index::from` or `proc_macro::Literal::*_unsuffixed` for code that will desugar to tuple field access 392 .tuple_exception_line_3 = see issue #60210 <https://github.com/rust-lang/rust/issues/60210> for more information 393 394parse_invalid_logical_operator = `{$incorrect}` is not a logical operator 395 .note = unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators 396 .use_amp_amp_for_conjunction = use `&&` to perform logical conjunction 397 .use_pipe_pipe_for_disjunction = use `||` to perform logical disjunction 398 399parse_invalid_meta_item = expected unsuffixed literal or identifier, found `{$token}` 400 401parse_invalid_unicode_escape = invalid unicode character escape 402 .label = invalid escape 403 .help = unicode escape must {$surrogate -> 404 [true] not be a surrogate 405 *[false] be at most 10FFFF 406 } 407 408parse_invalid_variable_declaration = 409 invalid variable declaration 410 411parse_kw_bad_case = keyword `{$kw}` is written in the wrong case 412 .suggestion = write it in the correct case 413 414parse_label_inner_attr_does_not_annotate_this = the inner attribute doesn't annotate this {$item} 415parse_label_unexpected_token = unexpected token 416 417parse_label_while_parsing_or_pattern_here = while parsing this or-pattern starting here 418 419parse_labeled_loop_in_break = parentheses are required around this expression to avoid confusion with a labeled break expression 420 421parse_leading_plus_not_supported = leading `+` is not supported 422 .label = unexpected `+` 423 .suggestion_remove_plus = try removing the `+` 424 425parse_leading_underscore_unicode_escape = {parse_leading_underscore_unicode_escape_label}: `_` 426parse_leading_underscore_unicode_escape_label = invalid start of unicode escape 427 428parse_left_arrow_operator = unexpected token: `<-` 429 .suggestion = if you meant to write a comparison against a negative value, add a space in between `<` and `-` 430 431parse_lifetime_after_mut = lifetime must precede `mut` 432 .suggestion = place the lifetime before `mut` 433 434parse_lifetime_in_borrow_expression = borrow expressions cannot be annotated with lifetimes 435 .suggestion = remove the lifetime annotation 436 .label = annotated with lifetime here 437 438parse_lone_slash = invalid trailing slash in literal 439 .label = {parse_lone_slash} 440 441parse_loop_else = `{$loop_kind}...else` loops are not supported 442 .note = consider moving this `else` clause to a separate `if` statement and use a `bool` variable to control if it should run 443 .loop_keyword = `else` is attached to this loop 444 445parse_macro_expands_to_adt_field = macros cannot expand to {$adt_ty} fields 446 447parse_macro_expands_to_enum_variant = macros cannot expand to enum variants 448 449parse_macro_expands_to_match_arm = macros cannot expand to match arms 450 451parse_macro_invocation_visibility = can't qualify macro invocation with `pub` 452 .suggestion = remove the visibility 453 .help = try adjusting the macro to put `{$vis}` inside the invocation 454 455parse_macro_invocation_with_qualified_path = macros cannot use qualified paths 456 457parse_macro_name_remove_bang = macro names aren't followed by a `!` 458 .suggestion = remove the `!` 459 460parse_macro_rules_missing_bang = expected `!` after `macro_rules` 461 .suggestion = add a `!` 462 463parse_macro_rules_visibility = can't qualify macro_rules invocation with `{$vis}` 464 .suggestion = try exporting the macro 465 466parse_malformed_cfg_attr = malformed `cfg_attr` attribute input 467 .suggestion = missing condition and attribute 468 .note = for more information, visit <https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute> 469 470parse_malformed_loop_label = malformed loop label 471 .suggestion = use the correct loop label format 472 473parse_match_arm_body_without_braces = `match` arm body without braces 474 .label_statements = {$num_statements -> 475 [one] this statement is not surrounded by a body 476 *[other] these statements are not surrounded by a body 477 } 478 .label_arrow = while parsing the `match` arm starting here 479 .suggestion_add_braces = surround the {$num_statements -> 480 [one] statement 481 *[other] statements 482 } with a body 483 .suggestion_use_comma_not_semicolon = replace `;` with `,` to end a `match` arm expression 484 485parse_maybe_fn_typo_with_impl = you might have meant to write `impl` instead of `fn` 486 .suggestion = replace `fn` with `impl` here 487 488parse_maybe_recover_from_bad_qpath_stage_2 = 489 missing angle brackets in associated item path 490 .suggestion = types that don't start with an identifier need to be surrounded with angle brackets in qualified paths 491 492parse_maybe_recover_from_bad_type_plus = 493 expected a path on the left-hand side of `+`, not `{$ty}` 494 495parse_maybe_report_ambiguous_plus = 496 ambiguous `+` in a type 497 .suggestion = use parentheses to disambiguate 498 499parse_meta_bad_delim = wrong meta list delimiters 500parse_meta_bad_delim_suggestion = the delimiters should be `(` and `)` 501 502parse_mismatched_closing_delimiter = mismatched closing delimiter: `{$delimiter}` 503 .label_unmatched = mismatched closing delimiter 504 .label_opening_candidate = closing delimiter possibly meant for this 505 .label_unclosed = unclosed delimiter 506 507parse_missing_comma_after_match_arm = expected `,` following `match` arm 508 .suggestion = missing a comma here to end this `match` arm 509 510parse_missing_const_type = missing type for `{$kind}` item 511 .suggestion = provide a type for the item 512 513parse_missing_expression_in_for_loop = missing expression to iterate on in `for` loop 514 .suggestion = try adding an expression to the `for` loop 515 516parse_missing_fn_for_function_definition = missing `fn` for function definition 517 .suggestion = add `fn` here to parse `{$ident}` as a public function 518 519parse_missing_fn_for_method_definition = missing `fn` for method definition 520 .suggestion = add `fn` here to parse `{$ident}` as a public method 521 522parse_missing_for_in_trait_impl = missing `for` in a trait impl 523 .suggestion = add `for` here 524 525parse_missing_in_in_for_loop = missing `in` in `for` loop 526 .use_in_not_of = try using `in` here instead 527 .add_in = try adding `in` here 528 529parse_missing_let_before_mut = missing keyword 530parse_missing_plus_in_bounds = expected `+` between lifetime and {$sym} 531 .suggestion = add `+` 532 533parse_missing_semicolon_before_array = expected `;`, found `[` 534 .suggestion = consider adding `;` here 535 536parse_missing_struct_for_struct_definition = missing `struct` for struct definition 537 .suggestion = add `struct` here to parse `{$ident}` as a public struct 538 539parse_missing_trait_in_trait_impl = missing trait in a trait impl 540 .suggestion_add_trait = add a trait here 541 .suggestion_remove_for = for an inherent impl, drop this `for` 542 543parse_modifier_lifetime = `{$sigil}` may only modify trait bounds, not lifetime bounds 544 .suggestion = remove the `{$sigil}` 545 546parse_more_than_one_char = character literal may only contain one codepoint 547 .followed_by = this `{$chr}` is followed by the combining {$len -> 548 [one] mark 549 *[other] marks 550 } `{$escaped_marks}` 551 .non_printing = there are non-printing characters, the full sequence is `{$escaped}` 552 .consider_normalized = consider using the normalized form `{$ch}` of this character 553 .remove_non = consider removing the non-printing characters 554 .use_double_quotes = if you meant to write a {$is_byte -> 555 [true] byte string 556 *[false] `str` 557 } literal, use double quotes 558 559parse_multiple_skipped_lines = multiple lines skipped by escaped newline 560 .label = skipping everything up to and including this point 561 562parse_multiple_where_clauses = cannot define duplicate `where` clauses on an item 563 .label = previous `where` clause starts here 564 .suggestion = consider joining the two `where` clauses into one 565 566parse_mut_on_nested_ident_pattern = `mut` must be attached to each individual binding 567 .suggestion = add `mut` to each binding 568parse_mut_on_non_ident_pattern = `mut` must be followed by a named binding 569 .suggestion = remove the `mut` prefix 570parse_need_plus_after_trait_object_lifetime = lifetime in trait object type must be followed by `+` 571 572parse_nested_adt = `{$kw_str}` definition cannot be nested inside `{$keyword}` 573 .suggestion = consider creating a new `{$kw_str}` definition instead of nesting 574 575parse_nested_c_variadic_type = C-variadic type `...` may not be nested inside another type 576 577parse_no_brace_unicode_escape = incorrect unicode escape sequence 578 .label = {parse_no_brace_unicode_escape} 579 .use_braces = format of unicode escape sequences uses braces 580 .format_of_unicode = format of unicode escape sequences is `\u{"{...}"}` 581 582parse_no_digits_literal = no valid digits found for number 583 584parse_non_string_abi_literal = non-string ABI literal 585 .suggestion = specify the ABI with a string literal 586 587parse_nonterminal_expected_ident = expected ident, found `{$token}` 588parse_nonterminal_expected_item_keyword = expected an item keyword 589parse_nonterminal_expected_lifetime = expected a lifetime, found `{$token}` 590 591parse_nonterminal_expected_statement = expected a statement 592parse_not_supported = not supported 593 594parse_note_edition_guide = for more on editions, read https://doc.rust-lang.org/edition-guide 595 596parse_note_mut_pattern_usage = `mut` may be followed by `variable` and `variable @ pattern` 597 598parse_note_pattern_alternatives_use_single_vert = alternatives in or-patterns are separated with `|`, not `||` 599 600parse_or_pattern_not_allowed_in_fn_parameters = top-level or-patterns are not allowed in function parameters 601parse_or_pattern_not_allowed_in_let_binding = top-level or-patterns are not allowed in `let` bindings 602parse_out_of_range_hex_escape = out of range hex escape 603 .label = must be a character in the range [\x00-\x7f] 604 605parse_outer_attr_explanation = outer attributes, like `#[test]`, annotate the item following them 606 607parse_outer_attribute_not_allowed_on_if_else = outer attributes are not allowed on `if` and `else` branches 608 .branch_label = the attributes are attached to this branch 609 .ctx_label = the branch belongs to this `{$ctx}` 610 .suggestion = remove the attributes 611 612parse_overlong_unicode_escape = overlong unicode escape 613 .label = must have at most 6 hex digits 614 615parse_parentheses_with_struct_fields = invalid `struct` delimiters or `fn` call arguments 616 .suggestion_braces_for_struct = if `{$type}` is a struct, use braces as delimiters 617 .suggestion_no_fields_for_fn = if `{$type}` is a function, use the arguments directly 618 619parse_parenthesized_lifetime = parenthesized lifetime bounds are not supported 620 .suggestion = remove the parentheses 621 622parse_path_single_colon = path separator must be a double colon 623 .suggestion = use a double colon instead 624 625parse_pattern_method_param_without_body = patterns aren't allowed in methods without bodies 626 .suggestion = give this argument a name or use an underscore to ignore it 627 628parse_pattern_on_wrong_side_of_at = pattern on wrong side of `@` 629 .label_pattern = pattern on the left, should be on the right 630 .label_binding = binding on the right, should be on the left 631 .suggestion = switch the order 632 633parse_question_mark_in_type = invalid `?` in type 634 .label = `?` is only allowed on expressions, not types 635 .suggestion = if you meant to express that the type might not contain a value, use the `Option` wrapper type 636 637parse_recover_import_as_use = expected item, found {$token_name} 638 .suggestion = items are imported using the `use` keyword 639 640parse_ref_mut_order_incorrect = the order of `mut` and `ref` is incorrect 641 .suggestion = try switching the order 642 643parse_remove_let = expected pattern, found `let` 644 .suggestion = remove the unnecessary `let` keyword 645 646parse_repeated_mut_in_pattern = `mut` on a binding may not be repeated 647 .suggestion = remove the additional `mut`s 648 649parse_require_colon_after_labeled_expression = labeled expression must be followed by `:` 650 .note = labels are used before loops and blocks, allowing e.g., `break 'label` to them 651 .label = the label 652 .suggestion = add `:` after the label 653 654parse_return_types_use_thin_arrow = return types are denoted using `->` 655 .suggestion = use `->` instead 656 657parse_self_argument_pointer = cannot pass `self` by raw pointer 658 .label = cannot pass `self` by raw pointer 659 660parse_self_param_not_first = unexpected `self` parameter in function 661 .label = must be the first parameter of an associated function 662 663parse_shift_interpreted_as_generic = 664 `<<` is interpreted as a start of generic arguments for `{$type}`, not a shift 665 .label_args = interpreted as generic arguments 666 .label_comparison = not interpreted as shift 667 .suggestion = try shifting the cast value 668 669parse_single_colon_import_path = expected `::`, found `:` 670 .suggestion = use double colon 671 .note = import paths are delimited using `::` 672 673parse_single_colon_struct_type = found single colon in a struct field type path 674 .suggestion = write a path separator here 675 676parse_static_with_generics = static items may not have generic parameters 677 678parse_struct_literal_body_without_path = 679 struct literal body without path 680 .suggestion = you might have forgotten to add the struct literal inside the block 681 682parse_struct_literal_needing_parens = 683 invalid struct literal 684 .suggestion = you might need to surround the struct literal with parentheses 685 686parse_struct_literal_not_allowed_here = struct literals are not allowed here 687 .suggestion = surround the struct literal with parentheses 688 689parse_suffixed_literal_in_attribute = suffixed literals are not allowed in attributes 690 .help = instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.) 691 692parse_sugg_add_let_for_stmt = you might have meant to introduce a new binding 693 694parse_sugg_add_semi = add `;` here 695parse_sugg_change_inner_attr_to_outer = to annotate the {$item}, change the attribute from inner to outer style 696 697parse_sugg_change_this_to_semi = change this to `;` 698parse_sugg_escape_identifier = escape `{$ident_name}` to use it as an identifier 699 700parse_sugg_remove_comma = remove this comma 701parse_sugg_remove_leading_vert_in_pattern = remove the `|` 702parse_sugg_turbofish_syntax = use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments 703 704parse_sugg_wrap_expression_in_parentheses = wrap the expression in parentheses 705 706parse_sugg_wrap_pattern_in_parens = wrap the pattern in parentheses 707 708parse_switch_mut_let_order = 709 switch the order of `mut` and `let` 710 711parse_ternary_operator = Rust has no ternary operator 712 .help = use an `if-else` expression instead 713 714parse_tilde_const_lifetime = `~const` may only modify trait bounds, not lifetime bounds 715 716parse_tilde_is_not_unary_operator = `~` cannot be used as a unary operator 717 .suggestion = use `!` to perform bitwise not 718 719parse_too_many_hashes = too many `#` symbols: raw strings may be delimited by up to 255 `#` symbols, but found {$num} 720 721parse_too_short_hex_escape = numeric character escape is too short 722 723parse_trailing_vert_not_allowed = a trailing `|` is not allowed in an or-pattern 724 .suggestion = remove the `{$token}` 725 726parse_trait_alias_cannot_be_auto = trait aliases cannot be `auto` 727parse_trait_alias_cannot_be_unsafe = trait aliases cannot be `unsafe` 728 729parse_type_ascription_removed = 730 if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728> 731 732parse_unclosed_unicode_escape = unterminated unicode escape 733 .label = missing a closing `{"}"}` 734 .terminate = terminate the unicode escape 735 736parse_underscore_literal_suffix = underscore literal suffix is not allowed 737 738parse_unexpected_const_in_generic_param = expected lifetime, type, or constant, found keyword `const` 739 .suggestion = the `const` keyword is only needed in the definition of the type 740 741parse_unexpected_const_param_declaration = unexpected `const` parameter declaration 742 .label = expected a `const` expression, not a parameter declaration 743 .suggestion = `const` parameters must be declared for the `impl` 744 745parse_unexpected_default_value_for_lifetime_in_generic_parameters = unexpected default lifetime parameter 746 .label = lifetime parameters cannot have default values 747 748parse_unexpected_if_with_if = unexpected `if` in the condition expression 749 .suggestion = remove the `if` 750 751parse_unexpected_lifetime_in_pattern = unexpected lifetime `{$symbol}` in pattern 752 .suggestion = remove the lifetime 753 754parse_unexpected_parentheses_in_for_head = unexpected parentheses surrounding `for` loop head 755 .suggestion = remove parentheses in `for` loop 756 757parse_unexpected_self_in_generic_parameters = unexpected keyword `Self` in generic parameters 758 .note = you cannot use `Self` as a generic parameter because it is reserved for associated items 759 760parse_unexpected_token_after_dot = unexpected token: `{$actual}` 761 762parse_unexpected_token_after_label = expected `while`, `for`, `loop` or `{"{"}` after a label 763 .suggestion_remove_label = consider removing the label 764 .suggestion_enclose_in_block = consider enclosing expression in a block 765 766parse_unexpected_token_after_not = unexpected {$negated_desc} after identifier 767parse_unexpected_token_after_not_bitwise = use `!` to perform bitwise not 768parse_unexpected_token_after_not_default = use `!` to perform logical negation or bitwise not 769 770parse_unexpected_token_after_not_logical = use `!` to perform logical negation 771parse_unexpected_token_after_struct_name = expected `where`, `{"{"}`, `(`, or `;` after struct name 772parse_unexpected_token_after_struct_name_found_doc_comment = expected `where`, `{"{"}`, `(`, or `;` after struct name, found doc comment `{$token}` 773parse_unexpected_token_after_struct_name_found_keyword = expected `where`, `{"{"}`, `(`, or `;` after struct name, found keyword `{$token}` 774parse_unexpected_token_after_struct_name_found_other = expected `where`, `{"{"}`, `(`, or `;` after struct name, found `{$token}` 775 776parse_unexpected_token_after_struct_name_found_reserved_identifier = expected `where`, `{"{"}`, `(`, or `;` after struct name, found reserved identifier `{$token}` 777parse_unexpected_token_after_struct_name_found_reserved_keyword = expected `where`, `{"{"}`, `(`, or `;` after struct name, found reserved keyword `{$token}` 778parse_unexpected_vert_vert_before_function_parameter = unexpected `||` before function parameter 779 .suggestion = remove the `||` 780 781parse_unexpected_vert_vert_in_pattern = unexpected token `||` in pattern 782 .suggestion = use a single `|` to separate multiple alternative patterns 783 784parse_unicode_escape_in_byte = unicode escape in byte string 785 .label = {parse_unicode_escape_in_byte} 786 .help = unicode escape sequences cannot be used as a byte or in a byte string 787 788parse_unknown_builtin_construct = unknown `builtin #` construct `{$name}` 789 790parse_unknown_prefix = prefix `{$prefix}` is unknown 791 .label = unknown prefix 792 .note = prefixed identifiers and literals are reserved since Rust 2021 793 .suggestion_br = use `br` for a raw byte string 794 .suggestion_whitespace = consider inserting whitespace here 795 796parse_unknown_start_of_token = unknown start of token: {$escaped} 797 .sugg_quotes = Unicode characters '“' (Left Double Quotation Mark) and '”' (Right Double Quotation Mark) look like '{$ascii_str}' ({$ascii_name}), but are not 798 .sugg_other = Unicode character '{$ch}' ({$u_name}) looks like '{$ascii_str}' ({$ascii_name}), but it is not 799 .help_null = source files must contain UTF-8 encoded text, unexpected null bytes might occur when a different encoding is used 800 .note_repeats = character appears {$repeats -> 801 [one] once more 802 *[other] {$repeats} more times 803 } 804 805parse_unmatched_angle = unmatched angle {$plural -> 806 [true] brackets 807 *[false] bracket 808 } 809 .suggestion = remove extra angle {$plural -> 810 [true] brackets 811 *[false] bracket 812 } 813 814parse_unmatched_angle_brackets = {$num_extra_brackets -> 815 [one] unmatched angle bracket 816 *[other] unmatched angle brackets 817 } 818 .suggestion = {$num_extra_brackets -> 819 [one] remove extra angle bracket 820 *[other] remove extra angle brackets 821 } 822 823parse_unskipped_whitespace = whitespace symbol '{$ch}' is not skipped 824 .label = {parse_unskipped_whitespace} 825 826parse_use_empty_block_not_semi = expected { "`{}`" }, found `;` 827 .suggestion = try using { "`{}`" } instead 828 829parse_use_eq_instead = unexpected `==` 830 .suggestion = try using `=` instead 831 832parse_use_let_not_auto = write `let` instead of `auto` to introduce a new variable 833parse_use_let_not_var = write `let` instead of `var` to introduce a new variable 834 835parse_visibility_not_followed_by_item = visibility `{$vis}` is not followed by an item 836 .label = the visibility 837 .help = you likely meant to define an item, e.g., `{$vis} fn foo() {"{}"}` 838 839parse_where_clause_before_const_body = where clauses are not allowed before const item bodies 840 .label = unexpected where clause 841 .name_label = while parsing this const item 842 .body_label = the item body 843 .suggestion = move the body before the where clause 844 845parse_where_clause_before_tuple_struct_body = where clauses are not allowed before tuple struct bodies 846 .label = unexpected where clause 847 .name_label = while parsing this tuple struct 848 .body_label = the struct body 849 .suggestion = move the body before the where clause 850 851parse_where_generics = generic parameters on `where` clauses are reserved for future use 852 .label = currently unsupported 853 854parse_zero_chars = empty character literal 855 .label = {parse_zero_chars}