2023-06-28 13:08:21 -05:00
trait_selection_adjust_signature_borrow = consider adjusting the signature so it borrows its {$len ->
[one] argument
*[other] arguments
}
trait_selection_adjust_signature_remove_borrow = consider adjusting the signature so it does not borrow its {$len ->
[one] argument
*[other] arguments
}
2024-02-14 17:52:57 -06:00
trait_selection_async_closure_not_fn = async closure does not implement `{$kind}` because it captures state from its environment
2023-08-06 09:00:12 -05:00
2024-02-14 17:52:57 -06:00
trait_selection_closure_fn_mut_label = closure is `{$trait_prefix}FnMut` because it mutates the variable `{$place}` here
2023-08-06 09:00:12 -05:00
2024-02-14 17:52:57 -06:00
trait_selection_closure_fn_once_label = closure is `{$trait_prefix}FnOnce` because it moves the variable `{$place}` out of its environment
2023-08-06 09:00:12 -05:00
2024-02-14 17:52:57 -06:00
trait_selection_closure_kind_mismatch = expected a closure that implements the `{$trait_prefix}{$expected}` trait, but this closure only implements `{$trait_prefix}{$found}`
.label = this closure implements `{$trait_prefix}{$found}`, not `{$trait_prefix}{$expected}`
trait_selection_closure_kind_requirement = the requirement to implement `{$trait_prefix}{$expected}` derives from here
2023-08-06 09:00:12 -05:00
2024-03-12 14:12:03 -05:00
trait_selection_disallowed_positional_argument = positional format arguments are not allowed here
.help = only named format arguments with the name of one of the generic types are allowed in this context
2022-08-26 13:08:58 -05:00
trait_selection_dump_vtable_entries = vtable entries for `{$trait_ref}`: {$entries}
trait_selection_empty_on_clause_in_rustc_on_unimplemented = empty `on`-clause in `#[rustc_on_unimplemented]`
.label = empty on-clause here
2023-11-09 01:33:21 -06:00
trait_selection_ignored_diagnostic_option = `{$option_name}` is ignored due to previous definition of `{$option_name}`
.other_label = `{$option_name}` is first declared here
.label = `{$option_name}` is already declared here
2023-03-20 19:46:52 -05:00
trait_selection_inherent_projection_normalization_overflow = overflow evaluating associated type `{$ty}`
2023-05-22 20:51:25 -05:00
2024-03-12 14:12:03 -05:00
trait_selection_invalid_format_specifier = invalid format specifier
.help = no format specifier are supported in this position
2022-08-26 13:08:58 -05:00
trait_selection_invalid_on_clause_in_rustc_on_unimplemented = invalid `on`-clause in `#[rustc_on_unimplemented]`
.label = invalid on-clause here
2023-06-02 06:55:46 -05:00
trait_selection_malformed_on_unimplemented_attr = malformed `on_unimplemented` attribute
2023-10-19 01:44:15 -05:00
.help = only `message`, `note` and `label` are allowed as options
.label = invalid option found here
trait_selection_missing_options_for_on_unimplemented_attr = missing options for `on_unimplemented` attribute
.help = at least one of the `message`, `note` and `label` options are expected
2023-06-02 06:55:46 -05:00
2022-08-26 13:08:58 -05:00
trait_selection_negative_positive_conflict = found both positive and negative implementation of trait `{$trait_desc}`{$self_desc ->
[none] {""}
*[default] {" "}for type `{$self_desc}`
}:
.negative_implementation_here = negative implementation here
.negative_implementation_in_crate = negative implementation in crate `{$negative_impl_cname}`
.positive_implementation_here = positive implementation here
.positive_implementation_in_crate = positive implementation in crate `{$positive_impl_cname}`
2023-03-20 19:46:52 -05:00
trait_selection_no_value_in_rustc_on_unimplemented = this attribute must have a valid value
.label = expected value here
.note = eg `#[rustc_on_unimplemented(message="foo")]`
2023-05-22 20:51:25 -05:00
2023-09-09 22:33:07 -05:00
trait_selection_trait_has_no_impls = this trait has no implementations, consider adding one
2023-06-30 08:54:15 -05:00
trait_selection_ty_alias_overflow = in case this is a recursive type alias, consider using a struct, enum, or union instead
2023-03-20 19:46:52 -05:00
trait_selection_unable_to_construct_constant_value = unable to construct a constant value for the unevaluated constant {$unevaluated}
2023-12-01 00:26:05 -06:00
trait_selection_unknown_format_parameter_for_on_unimplemented_attr = there is no parameter `{$argument_name}` on trait `{$trait_name}`
.help = expect either a generic argument name or {"`{Self}`"} as format argument
2024-03-12 14:12:03 -05:00
trait_selection_wrapped_parser_error = {$description}
.label = {$label}