2022-08-17 04:28:51 +08:00
|
|
|
ast_lowering_abi_specified_multiple_times =
|
|
|
|
`{$prev_name}` ABI specified multiple times
|
|
|
|
.label = previously specified here
|
|
|
|
.note = these ABIs are equivalent on the current target
|
2022-08-17 22:58:57 +08:00
|
|
|
|
|
|
|
ast_lowering_arbitrary_expression_in_pattern =
|
2022-09-08 21:37:15 +08:00
|
|
|
arbitrary expressions aren't allowed in patterns
|
2024-04-28 21:14:32 +08:00
|
|
|
.pattern_from_macro_note = the :expr fragment specifier forces the metavariable's content to be an expression
|
2022-09-08 21:37:15 +08:00
|
|
|
|
|
|
|
ast_lowering_argument = argument
|
2022-08-17 22:58:57 +08:00
|
|
|
|
2024-02-07 03:35:57 +08:00
|
|
|
ast_lowering_assoc_ty_binding_in_dyn =
|
|
|
|
associated type bounds are not allowed in `dyn` types
|
2024-02-07 03:48:16 +08:00
|
|
|
.suggestion = use `impl Trait` to introduce a type instead
|
2024-02-07 03:35:57 +08:00
|
|
|
|
2022-08-17 22:58:57 +08:00
|
|
|
ast_lowering_assoc_ty_parentheses =
|
|
|
|
parenthesized generic arguments cannot be used in associated type constraints
|
|
|
|
|
2024-01-27 01:33:42 +08:00
|
|
|
ast_lowering_async_bound_not_on_trait =
|
|
|
|
`async` bound modifier only allowed on trait, not `{$descr}`
|
|
|
|
|
|
|
|
ast_lowering_async_bound_only_for_fn_traits =
|
|
|
|
`async` bound modifier only allowed on `Fn`/`FnMut`/`FnOnce` traits
|
|
|
|
|
2023-10-20 05:46:28 +08:00
|
|
|
ast_lowering_async_coroutines_not_supported =
|
|
|
|
`async` coroutines are not yet supported
|
2023-02-15 03:15:43 +08:00
|
|
|
|
2022-08-18 01:48:25 +08:00
|
|
|
ast_lowering_att_syntax_only_x86 =
|
|
|
|
the `att_syntax` option is only supported on x86
|
|
|
|
|
|
|
|
ast_lowering_await_only_in_async_fn_and_blocks =
|
|
|
|
`await` is only allowed inside `async` functions and blocks
|
|
|
|
.label = only allowed inside `async` functions and blocks
|
|
|
|
|
|
|
|
ast_lowering_bad_return_type_notation_inputs =
|
|
|
|
argument types not allowed with return type notation
|
|
|
|
.suggestion = remove the input types
|
|
|
|
|
2023-03-11 12:10:09 +08:00
|
|
|
ast_lowering_bad_return_type_notation_output =
|
|
|
|
return type not allowed with return type notation
|
|
|
|
.suggestion = remove the return type
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 01:48:25 +08:00
|
|
|
ast_lowering_base_expression_double_dot =
|
|
|
|
base expression required after `..`
|
2023-05-26 21:49:01 +08:00
|
|
|
.suggestion = add a base expression here
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 01:48:25 +08:00
|
|
|
ast_lowering_clobber_abi_not_supported =
|
|
|
|
`clobber_abi` is not supported on this target
|
|
|
|
|
|
|
|
ast_lowering_closure_cannot_be_static = closures cannot be static
|
|
|
|
|
2023-10-20 05:46:28 +08:00
|
|
|
ast_lowering_coroutine_too_many_parameters =
|
|
|
|
too many parameters for a coroutine (expected 0 or 1 parameters)
|
|
|
|
|
2022-08-18 01:48:25 +08:00
|
|
|
ast_lowering_does_not_support_modifiers =
|
|
|
|
the `{$class_name}` register class does not support template modifiers
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 01:48:25 +08:00
|
|
|
ast_lowering_extra_double_dot =
|
|
|
|
`..` can only be used once per {$ctx} pattern
|
|
|
|
.label = can only be used once per {$ctx} pattern
|
|
|
|
|
|
|
|
ast_lowering_functional_record_update_destructuring_assignment =
|
|
|
|
functional record updates are not allowed in destructuring assignments
|
|
|
|
.suggestion = consider removing the trailing pattern
|
|
|
|
|
2024-01-02 02:29:27 +08:00
|
|
|
ast_lowering_generic_param_default_in_binder =
|
|
|
|
defaults for generic parameters are not allowed in `for<...>` binders
|
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_generic_type_with_parentheses =
|
|
|
|
parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
.label = only `Fn` traits may use parentheses
|
|
|
|
|
|
|
|
ast_lowering_inclusive_range_with_no_end = inclusive range with no end
|
|
|
|
|
|
|
|
ast_lowering_inline_asm_unsupported_target =
|
|
|
|
inline assembly is unsupported on this target
|
|
|
|
|
|
|
|
ast_lowering_invalid_abi =
|
|
|
|
invalid ABI: found `{$abi}`
|
|
|
|
.label = invalid ABI
|
|
|
|
.note = invoke `{$command}` for a full list of supported calling conventions.
|
|
|
|
|
|
|
|
ast_lowering_invalid_abi_clobber_abi =
|
|
|
|
invalid ABI for `clobber_abi`
|
|
|
|
.note = the following ABIs are supported on this target: {$supported_abis}
|
|
|
|
|
2022-08-19 00:08:39 +08:00
|
|
|
ast_lowering_invalid_abi_suggestion = did you mean
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_invalid_asm_template_modifier_const =
|
|
|
|
asm template modifiers are not allowed for `const` arguments
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2023-12-26 04:53:01 +08:00
|
|
|
ast_lowering_invalid_asm_template_modifier_label =
|
|
|
|
asm template modifiers are not allowed for `label` arguments
|
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_invalid_asm_template_modifier_reg_class =
|
|
|
|
invalid asm template modifier for this register class
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_invalid_asm_template_modifier_sym =
|
|
|
|
asm template modifiers are not allowed for `sym` arguments
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_invalid_register =
|
2022-08-19 20:55:06 +08:00
|
|
|
invalid register `{$reg}`: {$error}
|
2022-08-18 05:00:33 +08:00
|
|
|
|
|
|
|
ast_lowering_invalid_register_class =
|
2022-08-19 20:55:06 +08:00
|
|
|
invalid register class `{$reg_class}`: {$error}
|
2022-08-18 05:00:33 +08:00
|
|
|
|
2023-11-27 08:53:05 +08:00
|
|
|
ast_lowering_match_arm_with_no_body =
|
|
|
|
`match` arm with no body
|
|
|
|
.suggestion = add a body after the pattern
|
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_misplaced_double_dot =
|
|
|
|
`..` patterns are not allowed here
|
2022-08-19 00:08:39 +08:00
|
|
|
.note = only allowed in tuple, tuple struct, and slice patterns
|
2022-08-18 05:00:33 +08:00
|
|
|
|
|
|
|
ast_lowering_misplaced_impl_trait =
|
2024-01-08 01:11:48 +08:00
|
|
|
`impl Trait` is not allowed in {$position}
|
|
|
|
.note = `impl Trait` is only allowed in arguments and return types of functions and methods
|
2022-08-18 05:00:33 +08:00
|
|
|
|
|
|
|
ast_lowering_misplaced_relax_trait_bound =
|
|
|
|
`?Trait` bounds are only permitted at the point where a type parameter is declared
|
|
|
|
|
2023-11-27 11:08:09 +08:00
|
|
|
ast_lowering_never_pattern_with_body =
|
|
|
|
a never pattern is always unreachable
|
|
|
|
.label = this will never be executed
|
|
|
|
.suggestion = remove this expression
|
|
|
|
|
2023-11-27 10:47:49 +08:00
|
|
|
ast_lowering_never_pattern_with_guard =
|
|
|
|
a guard on a never pattern will never be run
|
|
|
|
.suggestion = remove this guard
|
|
|
|
|
2024-04-05 00:54:56 +08:00
|
|
|
ast_lowering_no_precise_captures_on_apit = `use<...>` precise capturing syntax not allowed on argument-position `impl Trait`
|
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_previously_used_here = previously used here
|
|
|
|
|
|
|
|
ast_lowering_register1 = register `{$reg1_name}`
|
2023-05-23 09:51:25 +08:00
|
|
|
|
2022-08-18 05:00:33 +08:00
|
|
|
ast_lowering_register2 = register `{$reg2_name}`
|
|
|
|
|
|
|
|
ast_lowering_register_class_only_clobber =
|
|
|
|
register class `{$reg_class_name}` can only be used as a clobber, not as an input or output
|
|
|
|
|
|
|
|
ast_lowering_register_conflict =
|
|
|
|
register `{$reg1_name}` conflicts with register `{$reg2_name}`
|
|
|
|
.help = use `lateout` instead of `out` to avoid conflict
|
|
|
|
|
|
|
|
ast_lowering_remove_parentheses = remove these parentheses
|
2022-08-19 00:08:39 +08:00
|
|
|
|
|
|
|
ast_lowering_sub_tuple_binding =
|
|
|
|
`{$ident_name} @` is not allowed in a {$ctx}
|
|
|
|
.label = this is only allowed in slice patterns
|
|
|
|
.help = remove this and bind each tuple field independently
|
|
|
|
|
|
|
|
ast_lowering_sub_tuple_binding_suggestion = if you don't need to use the contents of {$ident}, discard the tuple's remaining fields
|
|
|
|
|
2022-08-19 01:30:56 +08:00
|
|
|
ast_lowering_support_modifiers =
|
|
|
|
the `{$class_name}` register class supports the following template modifiers: {$modifiers}
|
|
|
|
|
|
|
|
ast_lowering_template_modifier = template modifier
|
2022-08-27 00:03:41 +08:00
|
|
|
|
|
|
|
ast_lowering_this_not_async = this is not `async`
|
2022-09-02 23:57:31 +08:00
|
|
|
|
2023-03-17 06:00:08 +08:00
|
|
|
ast_lowering_underscore_expr_lhs_assign =
|
|
|
|
in expressions, `_` can only be used on the left-hand side of an assignment
|
|
|
|
.label = `_` not allowed here
|
|
|
|
|
2023-03-11 12:10:09 +08:00
|
|
|
ast_lowering_use_angle_brackets = use angle brackets instead
|
2024-04-11 21:15:34 +08:00
|
|
|
ast_lowering_yield_in_closure =
|
|
|
|
`yield` can only be used in `#[coroutine]` closures, or `gen` blocks
|
|
|
|
.suggestion = use `#[coroutine]` to make this closure a coroutine
|