2024-12-13 14:47:11 +01:00
attr_parsing_cfg_predicate_identifier =
2022-08-21 12:36:16 +02:00
`cfg` predicate key must be an identifier
2023-05-23 01:51:25 +00:00
2024-12-13 14:47:11 +01:00
attr_parsing_deprecated_item_suggestion =
2022-08-21 12:36:16 +02:00
suggestions on deprecated items are unstable
.help = add `#![feature(deprecated_suggestion)]` to the crate root
.note = see #94785 for more details
2023-05-23 01:51:25 +00:00
2025-07-04 12:42:33 +02:00
attr_parsing_empty_attribute =
unused attribute
.suggestion = remove this attribute
2025-08-09 20:37:32 +02:00
attr_parsing_invalid_target = `#[{$name}]` attribute cannot be used on {$target}
.help = `#[{$name}]` can {$only}be applied to {$applied}
2025-08-16 17:11:45 +02:00
.suggestion = remove the attribute
2025-08-09 20:37:32 +02:00
attr_parsing_invalid_target_lint = `#[{$name}]` attribute cannot be used on {$target}
.warn = {-attr_parsing_previously_accepted}
.help = `#[{$name}]` can {$only}be applied to {$applied}
2025-08-16 17:11:45 +02:00
.suggestion = remove the attribute
2025-08-09 20:37:32 +02:00
2025-02-09 22:49:33 +01:00
attr_parsing_empty_confusables =
expected at least one confusable name
2024-12-13 14:47:11 +01:00
attr_parsing_expected_one_cfg_pattern =
2022-08-21 21:43:03 +02:00
expected 1 cfg-pattern
2024-12-13 14:47:11 +01:00
attr_parsing_expected_single_version_literal =
2022-08-21 21:43:03 +02:00
expected single version literal
2024-12-13 14:47:11 +01:00
attr_parsing_expected_version_literal =
2022-08-21 21:43:03 +02:00
expected a version literal
2023-05-23 01:51:25 +00:00
2024-12-13 14:47:11 +01:00
attr_parsing_expects_feature_list =
2022-08-21 08:46:05 +02:00
`{$name}` expects a list of feature names
2023-05-23 01:51:25 +00:00
2024-12-13 14:47:11 +01:00
attr_parsing_expects_features =
2022-08-21 20:56:29 +02:00
`{$name}` expects feature names
2022-08-21 08:46:05 +02:00
2025-03-04 14:17:06 +01:00
attr_parsing_ill_formed_attribute_input = {$num_suggestions ->
[1] attribute must be of the form {$suggestions}
*[other] valid forms for the attribute are {$suggestions}
}
2022-08-21 21:43:03 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_incorrect_repr_format_align_one_arg =
2022-08-21 08:46:05 +02:00
incorrect `repr(align)` attribute format: `align` takes exactly one argument in parentheses
2024-12-13 14:47:11 +01:00
attr_parsing_incorrect_repr_format_expect_literal_integer =
2024-03-02 23:18:06 +08:00
incorrect `repr(align)` attribute format: `align` expects a literal integer as argument
2024-03-02 22:42:13 +08:00
2024-12-13 14:47:11 +01:00
attr_parsing_incorrect_repr_format_generic =
2022-08-21 21:43:03 +02:00
incorrect `repr({$repr_arg})` attribute format
.suggestion = use parentheses instead
2024-12-13 14:47:11 +01:00
attr_parsing_incorrect_repr_format_packed_expect_integer =
2024-03-02 23:18:06 +08:00
incorrect `repr(packed)` attribute format: `packed` expects a literal integer as argument
2024-03-02 22:42:13 +08:00
2024-12-13 14:47:11 +01:00
attr_parsing_incorrect_repr_format_packed_one_or_zero_arg =
2022-08-21 21:43:03 +02:00
incorrect `repr(packed)` attribute format: `packed` takes exactly one parenthesized argument, or no parentheses at all
2025-06-09 20:08:52 +02:00
attr_parsing_invalid_alignment_value =
invalid alignment value: {$error_part}
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_issue_string =
2022-08-21 21:43:03 +02:00
`issue` must be a non-zero numeric string or "none"
.must_not_be_zero = `issue` must not be "0", use "none" instead
.empty = cannot parse integer from empty string
.invalid_digit = invalid digit found in string
.pos_overflow = number too large to fit in target type
.neg_overflow = number too small to fit in target type
2022-08-21 08:46:05 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_predicate =
2022-08-21 21:43:03 +02:00
invalid predicate `{$predicate}`
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_repr_align_need_arg =
2022-08-21 21:43:03 +02:00
invalid `repr(align)` attribute: `align` needs an argument
.suggestion = supply an argument here
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_repr_generic =
2022-08-21 21:43:03 +02:00
invalid `repr({$repr_arg})` attribute: {$error_part}
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_repr_hint_no_paren =
2022-08-21 21:43:03 +02:00
invalid representation hint: `{$name}` does not take a parenthesized argument list
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_repr_hint_no_value =
2022-08-21 21:43:03 +02:00
invalid representation hint: `{$name}` does not take a value
2022-08-21 08:46:05 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_invalid_since =
2023-10-16 12:30:32 -07:00
'since' must be a Rust version number, such as "1.31.0"
2025-06-29 23:39:09 +02:00
attr_parsing_link_ordinal_out_of_range = ordinal value in `link_ordinal` is too large: `{$ordinal}`
.note = the value may not exceed `u16::MAX`
2024-12-13 14:47:11 +01:00
attr_parsing_missing_feature =
2022-08-21 08:46:05 +02:00
missing 'feature'
2022-08-21 08:48:14 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_missing_issue =
2022-08-21 21:43:03 +02:00
missing 'issue'
2022-08-21 08:48:14 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_missing_note =
2022-08-21 21:43:03 +02:00
missing 'note'
2022-08-21 08:48:14 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_missing_since =
2022-08-21 21:43:03 +02:00
missing 'since'
2024-12-13 14:47:11 +01:00
attr_parsing_multiple_stability_levels =
2022-08-21 08:48:14 +02:00
multiple stability levels
2023-05-23 01:51:25 +00:00
2025-06-13 02:28:33 +02:00
attr_parsing_naked_functions_incompatible_attribute =
attribute incompatible with `#[unsafe(naked)]`
.label = the `{$attr}` attribute is incompatible with `#[unsafe(naked)]`
.naked_attribute = function marked with `#[unsafe(naked)]` here
2025-06-24 22:33:44 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_non_ident_feature =
2022-08-21 08:48:14 +02:00
'feature' is not an identifier
2025-06-24 22:33:44 +02:00
attr_parsing_null_on_export = `export_name` may not contain null characters
2025-06-29 15:37:54 +02:00
attr_parsing_null_on_link_section = `link_section` may not contain null characters
2025-02-09 22:49:31 +01:00
attr_parsing_repr_ident =
meta item in `repr` must be an identifier
2025-02-09 22:49:33 +01:00
2024-12-13 14:47:11 +01:00
attr_parsing_rustc_allowed_unstable_pairing =
2022-08-21 08:48:14 +02:00
`rustc_allowed_through_unstable_modules` attribute must be paired with a `stable` attribute
2024-12-13 14:47:11 +01:00
attr_parsing_rustc_promotable_pairing =
2022-08-21 12:36:16 +02:00
`rustc_promotable` attribute must be paired with either a `rustc_const_unstable` or a `rustc_const_stable` attribute
2022-08-21 21:43:03 +02:00
2024-12-13 14:47:11 +01:00
attr_parsing_soft_no_args =
2022-08-21 21:43:03 +02:00
`soft` should not have any arguments
2025-02-09 22:49:33 +01:00
attr_parsing_stability_outside_std = stability attributes may not be used outside of the standard library
2024-12-13 14:47:11 +01:00
attr_parsing_unknown_meta_item =
2022-08-21 08:46:05 +02:00
unknown meta item '{$item}'
.label = expected one of {$expected}
2023-05-23 01:51:25 +00:00
2024-12-13 14:47:11 +01:00
attr_parsing_unknown_version_literal =
2022-08-21 21:43:03 +02:00
unknown version literal format, assuming it refers to a future version
2023-05-23 01:51:25 +00:00
2025-02-09 22:49:31 +01:00
attr_parsing_unrecognized_repr_hint =
unrecognized representation hint
.help = valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
2025-08-11 04:39:55 +00:00
.note = for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations>
2025-02-09 22:49:31 +01:00
2024-12-13 14:47:11 +01:00
attr_parsing_unstable_cfg_target_compact =
2024-08-07 23:23:35 +03:00
compact `cfg(target(..))` is experimental and subject to change
2025-07-14 13:37:51 +00:00
attr_parsing_unstable_feature_bound_incompatible_stability = Item annotated with `#[unstable_feature_bound]` should not be stable
.help = If this item is meant to be stable, do not use any functions annotated with `#[unstable_feature_bound]`. Otherwise, mark this item as unstable with `#[unstable]`
2024-12-13 14:47:11 +01:00
attr_parsing_unsupported_literal_cfg_boolean =
2024-10-01 10:25:18 +02:00
literal in `cfg` predicate value must be a boolean
2024-12-13 14:47:11 +01:00
attr_parsing_unsupported_literal_cfg_string =
2022-08-21 08:46:05 +02:00
literal in `cfg` predicate value must be a string
2024-12-13 14:47:11 +01:00
attr_parsing_unsupported_literal_generic =
2022-08-21 08:46:05 +02:00
unsupported literal
2024-12-13 14:47:11 +01:00
attr_parsing_unsupported_literal_suggestion =
2022-08-21 08:46:05 +02:00
consider removing the prefix
2025-02-09 22:49:33 +01:00
2025-02-12 13:59:08 +01:00
attr_parsing_unused_duplicate =
unused attribute
.suggestion = remove this attribute
.note = attribute also specified here
2025-07-08 18:45:36 -05:00
.warn = {-attr_parsing_previously_accepted}
2025-03-04 14:17:06 +01:00
2025-02-09 22:49:33 +01:00
attr_parsing_unused_multiple =
multiple `{$name}` attributes
.suggestion = remove this attribute
.note = attribute also specified here
2025-02-12 13:59:08 +01:00
2025-07-08 18:45:36 -05:00
-attr_parsing_previously_accepted =
2025-02-12 13:59:08 +01:00
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2025-07-29 16:35:22 +02:00
attr_parsing_meta_bad_delim = wrong meta list delimiters
attr_parsing_meta_bad_delim_suggestion = the delimiters should be `(` and `)`
attr_parsing_unsafe_attr_outside_unsafe = unsafe attribute used without unsafe
.label = usage of unsafe attribute
attr_parsing_unsafe_attr_outside_unsafe_suggestion = wrap the attribute in `unsafe(...)`
attr_parsing_invalid_attr_unsafe = `{$name}` is not an unsafe attribute
.label = this is not an unsafe attribute
.suggestion = remove the `unsafe(...)`
.note = extraneous unsafe is not allowed in attributes