2022-08-10 02:42:10 -05:00
builtin_macros_alloc_error_must_be_fn = alloc_error_handler must be a function
2023-06-21 06:01:53 -05:00
builtin_macros_alloc_must_statics = allocators must be statics
2022-06-21 14:20:00 -05:00
2022-08-10 02:42:10 -05:00
builtin_macros_asm_clobber_abi = clobber_abi
builtin_macros_asm_clobber_no_reg = asm with `clobber_abi` must specify explicit registers for outputs
builtin_macros_asm_clobber_outputs = generic outputs
2023-04-08 14:37:41 -05:00
2023-04-24 17:08:35 -05:00
builtin_macros_asm_duplicate_arg = duplicate argument named `{$name}`
.label = previously here
2023-04-30 15:45:46 -05:00
.arg = duplicate argument
2023-05-22 20:51:25 -05:00
2023-04-24 17:08:35 -05:00
builtin_macros_asm_expected_comma = expected token: `,`
2023-04-30 15:45:46 -05:00
.label = expected `,`
2023-05-22 20:51:25 -05:00
2024-08-04 09:42:37 -05:00
builtin_macros_asm_expected_other = expected operand, {$is_inline_asm ->
[false] options
*[true] clobber_abi, options
2023-04-24 17:08:35 -05:00
}, or additional template string
2023-05-22 20:51:25 -05:00
2024-06-25 05:04:21 -05:00
builtin_macros_asm_expected_string_literal = expected string literal
.label = not a string literal
2023-04-24 17:08:35 -05:00
builtin_macros_asm_explicit_register_name = explicit register arguments cannot have names
2023-05-22 20:51:25 -05:00
2023-12-25 22:44:22 -06:00
builtin_macros_asm_mayunwind = asm labels are not allowed with the `may_unwind` option
2023-04-24 17:08:35 -05:00
builtin_macros_asm_modifier_invalid = asm template modifier must be a single character
2023-05-22 20:51:25 -05:00
2023-04-24 17:08:35 -05:00
builtin_macros_asm_mutually_exclusive = the `{$opt1}` and `{$opt2}` options are mutually exclusive
2023-05-22 20:51:25 -05:00
2024-06-25 05:04:21 -05:00
builtin_macros_asm_no_matched_argument_name = there is no argument named `{$name}`
2023-04-24 17:08:35 -05:00
builtin_macros_asm_noreturn = asm outputs are not allowed with the `noreturn` option
2023-05-22 20:51:25 -05:00
2023-04-30 15:45:46 -05:00
builtin_macros_asm_opt_already_provided = the `{$symbol}` option was already provided
.label = this option was already provided
.suggestion = remove this option
2023-05-22 20:51:25 -05:00
2023-04-30 15:45:46 -05:00
builtin_macros_asm_pos_after = positional arguments cannot follow named arguments or explicit register arguments
.pos = positional argument
.named = named argument
.explicit = explicit register argument
2023-05-22 20:51:25 -05:00
2023-04-10 10:04:14 -05:00
builtin_macros_asm_pure_combine = the `pure` option must be combined with either `nomem` or `readonly`
2023-05-22 20:51:25 -05:00
2023-04-10 10:04:14 -05:00
builtin_macros_asm_pure_no_output = asm with the `pure` option must have at least one output
2023-05-22 20:51:25 -05:00
2023-04-30 15:45:46 -05:00
builtin_macros_asm_requires_template = requires at least a template string argument
2023-05-22 20:51:25 -05:00
2023-04-30 15:45:46 -05:00
builtin_macros_asm_sym_no_path = expected a path for argument to `sym`
2023-05-22 20:51:25 -05:00
2023-04-24 17:08:35 -05:00
builtin_macros_asm_underscore_input = _ cannot be used for input operands
2023-05-22 20:51:25 -05:00
2024-08-04 09:42:37 -05:00
builtin_macros_asm_unsupported_clobber_abi = `clobber_abi` cannot be used with `{$macro_name}!`
builtin_macros_asm_unsupported_operand = the `{$symbol}` operand cannot be used with `{$macro_name}!`
.label = the `{$symbol}` operand is not meaningful for global-scoped inline assembly, remove it
builtin_macros_asm_unsupported_option = the `{$symbol}` option cannot be used with `{$macro_name}!`
.label = the `{$symbol}` option is not meaningful for global-scoped inline assembly
.suggestion = remove this option
2023-04-08 14:37:41 -05:00
builtin_macros_assert_missing_comma = unexpected string literal
.suggestion = try adding a comma
2023-04-24 17:08:35 -05:00
2023-04-08 14:37:41 -05:00
builtin_macros_assert_requires_boolean = macro requires a boolean expression as an argument
.label = boolean expression required
builtin_macros_assert_requires_expression = macro requires an expression as an argument
.suggestion = try removing semicolon
2024-10-11 12:13:31 -05:00
builtin_macros_autodiff = autodiff must be applied to function
builtin_macros_autodiff_missing_config = autodiff requires at least a name and mode
builtin_macros_autodiff_mode = unknown Mode: `{$mode}`. Use `Forward` or `Reverse`
builtin_macros_autodiff_mode_activity = {$act} can not be used in {$mode} Mode
builtin_macros_autodiff_not_build = this rustc version does not support autodiff
builtin_macros_autodiff_number_activities = expected {$expected} activities, but found {$found}
builtin_macros_autodiff_ty_activity = {$act} can not be used for this type
builtin_macros_autodiff_unknown_activity = did not recognize Activity: `{$act}`
2023-04-08 14:37:41 -05:00
builtin_macros_bad_derive_target = `derive` may only be applied to `struct`s, `enum`s and `union`s
.label = not applicable here
.label2 = not a `struct`, `enum` or `union`
2023-05-22 20:51:25 -05:00
2023-06-21 06:01:53 -05:00
builtin_macros_bench_sig = functions used as benches must have signature `fn(&mut Bencher) -> impl Termination`
2023-04-08 14:37:41 -05:00
builtin_macros_cannot_derive_union = this trait cannot be derived for unions
builtin_macros_cfg_accessible_has_args = `cfg_accessible` path cannot accept arguments
builtin_macros_cfg_accessible_indeterminate = cannot determine whether the path is accessible or not
builtin_macros_cfg_accessible_literal_path = `cfg_accessible` path cannot be a literal
builtin_macros_cfg_accessible_multiple_paths = multiple `cfg_accessible` paths are specified
builtin_macros_cfg_accessible_unspecified_path = `cfg_accessible` path is not specified
builtin_macros_concat_bytes_array = cannot concatenate doubly nested array
.note = byte strings are treated as arrays of bytes
.help = try flattening the array
builtin_macros_concat_bytes_bad_repeat = repeat count is not a positive number
builtin_macros_concat_bytes_invalid = cannot concatenate {$lit_kind} literals
.byte_char = try using a byte character
.byte_str = try using a byte string
.number_array = try wrapping the number in an array
builtin_macros_concat_bytes_missing_literal = expected a byte literal
.note = only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()`
builtin_macros_concat_bytes_non_u8 = numeric literal is not a `u8`
builtin_macros_concat_bytes_oob = numeric literal is out of bounds
builtin_macros_concat_bytestr = cannot concatenate a byte string literal
2023-06-21 06:01:53 -05:00
builtin_macros_concat_c_str_lit = cannot concatenate a C string literal
2023-05-22 20:51:25 -05:00
2023-04-08 14:37:41 -05:00
builtin_macros_concat_idents_ident_args = `concat_idents!()` requires ident args
builtin_macros_concat_idents_missing_args = `concat_idents!()` takes 1 or more arguments
builtin_macros_concat_idents_missing_comma = `concat_idents!()` expecting comma
builtin_macros_concat_missing_literal = expected a literal
.note = only literals (like `"foo"`, `-42` and `3.14`) can be passed to `concat!()`
builtin_macros_default_arg = `#[default]` attribute does not accept a value
.suggestion = try using `#[default]`
builtin_macros_derive_macro_call = `derive` cannot be used on items with type macros
builtin_macros_derive_path_args_list = traits in `#[derive(...)]` don't accept arguments
.suggestion = remove the arguments
builtin_macros_derive_path_args_value = traits in `#[derive(...)]` don't accept values
.suggestion = remove the value
builtin_macros_env_not_defined = environment variable `{$var}` not defined at compile time
2023-07-25 05:12:52 -05:00
.cargo = Cargo sets build script variables at run time. Use `std::env::var({$var_expr})` instead
.custom = use `std::env::var({$var_expr})` to read the variable at run time
2023-04-08 14:37:41 -05:00
2024-03-17 16:12:17 -05:00
builtin_macros_env_not_unicode = environment variable `{$var}` is not a valid Unicode string
2023-04-08 14:37:41 -05:00
builtin_macros_env_takes_args = `env!()` takes 1 or 2 arguments
2023-05-22 20:51:25 -05:00
2024-04-25 17:44:23 -05:00
builtin_macros_expected_comma_in_list = expected token: `,`
2023-04-08 14:37:41 -05:00
builtin_macros_expected_one_cfg_pattern = expected 1 cfg-pattern
2023-06-27 21:52:48 -05:00
builtin_macros_expected_register_class_or_explicit_register = expected register class or explicit register
2023-06-21 06:01:53 -05:00
builtin_macros_export_macro_rules = cannot export macro_rules! macros from a `proc-macro` crate type currently
2023-04-08 14:37:41 -05:00
builtin_macros_format_duplicate_arg = duplicate argument named `{$ident}`
.label1 = previously here
.label2 = duplicate argument
builtin_macros_format_no_arg_named = there is no argument named `{$name}`
.note = did you intend to capture a variable `{$name}` from the surrounding scope?
.note2 = to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
2023-05-22 20:51:25 -05:00
2023-04-08 14:37:41 -05:00
builtin_macros_format_pos_mismatch = {$n} positional {$n ->
[one] argument
*[more] arguments
} in format string, but {$desc}
2023-05-22 20:51:25 -05:00
2023-04-08 14:37:41 -05:00
builtin_macros_format_positional_after_named = positional arguments cannot follow named arguments
.label = positional arguments must be before named arguments
.named_args = named argument
2023-10-05 07:32:56 -05:00
builtin_macros_format_redundant_args = redundant {$n ->
[one] argument
*[more] arguments
}
2023-10-04 08:47:53 -05:00
.help = {$n ->
[one] the formatting string already captures the binding directly, it doesn't need to be included in the argument list
*[more] the formatting strings already captures the bindings directly, they don't need to be included in the argument list
}
.note = {$n ->
[one] the formatting specifier is referencing the binding already
*[more] the formatting specifiers are referencing the bindings already
}
.suggestion = this can be removed
2023-10-05 09:16:31 -05:00
builtin_macros_format_remove_raw_ident = remove the `r#`
2023-04-30 15:45:46 -05:00
builtin_macros_format_requires_string = requires at least a format string argument
2023-05-22 20:51:25 -05:00
2023-04-08 14:37:41 -05:00
builtin_macros_format_string_invalid = invalid format string: {$desc}
.label = {$label1} in format string
.note = {$note}
.second_label = {$label}
builtin_macros_format_unknown_trait = unknown format trait `{$ty}`
.note = the only appropriate formatting traits are:
- ``, which uses the `Display` trait
- `?`, which uses the `Debug` trait
- `e`, which uses the `LowerExp` trait
- `E`, which uses the `UpperExp` trait
- `o`, which uses the `Octal` trait
- `p`, which uses the `Pointer` trait
- `b`, which uses the `Binary` trait
- `x`, which uses the `LowerHex` trait
- `X`, which uses the `UpperHex` trait
.suggestion = use the `{$trait_name}` trait
builtin_macros_format_unused_arg = {$named ->
[true] named argument
*[false] argument
} never used
builtin_macros_format_unused_args = multiple unused formatting arguments
.label = multiple missing formatting specifiers
2023-09-06 09:32:06 -05:00
builtin_macros_format_use_positional = consider using a positional formatting argument instead
2023-06-21 06:01:53 -05:00
builtin_macros_invalid_crate_attribute = invalid crate attribute
2023-04-30 15:45:46 -05:00
builtin_macros_multiple_default_attrs = multiple `#[default]` attributes
.note = only one `#[default]` attribute is needed
.label = `#[default]` used here
.label_again = `#[default]` used again here
2023-04-08 14:37:41 -05:00
.help = try removing {$only_one ->
[true] this
*[false] these
2023-05-22 20:51:25 -05:00
}
2023-04-30 15:45:46 -05:00
builtin_macros_multiple_defaults = multiple declared defaults
.label = first default
.additional = additional default
.note = only one variant can be default
.suggestion = make `{$ident}` default
2024-07-16 17:03:33 -05:00
builtin_macros_naked_functions_testing_attribute =
cannot use `#[naked]` with testing attributes
.label = function marked with testing attribute here
.naked_attribute = `#[naked]` is incompatible with testing attributes
2023-04-30 15:45:46 -05:00
builtin_macros_no_default_variant = no default declared
.help = make a unit variant default by placing `#[default]` above it
.suggestion = make `{$ident}` default
2023-06-21 06:01:53 -05:00
builtin_macros_non_abi = at least one abi must be provided as an argument to `clobber_abi`
2023-04-30 15:45:46 -05:00
builtin_macros_non_exhaustive_default = default variant must be exhaustive
.label = declared `#[non_exhaustive]` here
.help = consider a manual implementation of `Default`
2024-08-20 13:53:49 -05:00
builtin_macros_non_generic_pointee = the `#[pointee]` attribute may only be used on generic parameters
2023-04-30 15:45:46 -05:00
builtin_macros_non_unit_default = the `#[default]` attribute may only be used on unit enum variants
.help = consider a manual implementation of `Default`
2024-04-25 17:44:23 -05:00
builtin_macros_only_one_argument = {$name} takes 1 argument
2023-06-21 06:01:53 -05:00
builtin_macros_proc_macro = `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
2024-06-25 05:04:21 -05:00
builtin_macros_proc_macro_attribute_only_be_used_on_bare_functions = the `#[{$path}]` attribute may only be used on bare functions
builtin_macros_proc_macro_attribute_only_usable_with_crate_type = the `#[{$path}]` attribute is only usable with crates of the `proc-macro` crate type
2023-04-30 15:45:46 -05:00
builtin_macros_requires_cfg_pattern =
macro requires a cfg-pattern as an argument
.label = cfg-pattern required
2024-06-25 05:04:21 -05:00
builtin_macros_source_uitls_expected_item = expected item, found `{$token}`
2024-04-25 17:44:23 -05:00
builtin_macros_takes_no_arguments = {$name} takes no arguments
2023-04-30 15:45:46 -05:00
builtin_macros_test_bad_fn = {$kind} functions cannot be used for tests
.label = `{$kind}` because of this
builtin_macros_test_case_non_item = `#[test_case]` attribute is only allowed on items
2023-04-10 10:04:14 -05:00
builtin_macros_test_runner_invalid = `test_runner` argument must be a path
builtin_macros_test_runner_nargs = `#![test_runner(..)]` accepts exactly 1 argument
2023-05-22 20:51:25 -05:00
2023-06-21 06:01:53 -05:00
builtin_macros_tests_not_support = building tests with panic=abort is not supported without `-Zpanic_abort_tests`
builtin_macros_trace_macros = trace_macros! accepts only `true` or `false`
2023-04-08 14:37:41 -05:00
builtin_macros_unexpected_lit = expected path to a trait, found literal
.label = not a trait
.str_lit = try using `#[derive({$sym})]`
.other = for example, write `#[derive(Debug)]` for `Debug`