2022-08-10 07:42:10 +00:00
|
|
|
-passes_previously_accepted =
|
2022-07-11 17:59:04 +00:00
|
|
|
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
-passes_see_issue =
|
2022-07-11 17:59:04 +00:00
|
|
|
see issue #{$issue} <https://github.com/rust-lang/rust/issues/{$issue}> for more information
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_outer_crate_level_attr =
|
2022-07-11 17:59:04 +00:00
|
|
|
crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_inner_crate_level_attr =
|
2022-07-11 17:59:04 +00:00
|
|
|
crate-level attribute should be in the root module
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_ignored_attr_with_macro =
|
|
|
|
`#[{$sym}]` is ignored on struct fields, match arms and macro defs
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
|
|
|
.note = {-passes_see_issue(issue: "80564")}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_ignored_attr =
|
|
|
|
`#[{$sym}]` is ignored on struct fields and match arms
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
|
|
|
.note = {-passes_see_issue(issue: "80564")}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_inline_ignored_function_prototype =
|
|
|
|
`#[inline]` is ignored on function prototypes
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_inline_ignored_constants =
|
|
|
|
`#[inline]` is ignored on constants
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
|
|
|
.note = {-passes_see_issue(issue: "65833")}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_inline_not_fn_or_closure =
|
|
|
|
attribute should be applied to function or closure
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not a function or closure
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_coverage_ignored_function_prototype =
|
|
|
|
`#[no_coverage]` is ignored on function prototypes
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_no_coverage_propagate =
|
2022-07-11 17:59:04 +00:00
|
|
|
`#[no_coverage]` does not propagate into items and must be applied to the contained functions directly
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_coverage_fn_defn =
|
|
|
|
`#[no_coverage]` may only be applied to function definitions
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_coverage_not_coverable =
|
|
|
|
`#[no_coverage]` must be applied to coverable code
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not coverable code
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_should_be_applied_to_fn =
|
|
|
|
attribute should be applied to a function definition
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not a function definition
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_naked_tracked_caller =
|
|
|
|
cannot use `#[track_caller]` with `#[naked]`
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_should_be_applied_to_struct_enum =
|
|
|
|
attribute should be applied to a struct or enum
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not a struct or enum
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_should_be_applied_to_trait =
|
|
|
|
attribute should be applied to a trait
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not a trait
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_target_feature_on_statement =
|
|
|
|
{passes_should_be_applied_to_fn}
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
|
|
|
.label = {passes_should_be_applied_to_fn.label}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_should_be_applied_to_static =
|
|
|
|
attribute should be applied to a static
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not a static
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_expect_str =
|
|
|
|
doc {$attr_name} attribute expects a string: #[doc({$attr_name} = "a")]
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_empty =
|
|
|
|
{$attr_str} attribute cannot have empty value
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_bad_char =
|
|
|
|
{$char_} character isn't allowed in {$attr_str}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_start_end =
|
|
|
|
{$attr_str} cannot start or end with ' '
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_bad_location =
|
|
|
|
{$attr_str} isn't allowed on {$location}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_not_an_alias =
|
|
|
|
{$attr_str} is the same as the item's name
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_doc_alias_duplicated = doc alias is duplicated
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = first defined here
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_alias_not_string_literal =
|
|
|
|
`#[doc(alias("a"))]` expects string literals
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_doc_alias_malformed =
|
2022-07-11 17:59:04 +00:00
|
|
|
doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_keyword_empty_mod =
|
|
|
|
`#[doc(keyword = "...")]` should be used on empty modules
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_keyword_not_mod =
|
|
|
|
`#[doc(keyword = "...")]` should be used on modules
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_keyword_invalid_ident =
|
|
|
|
`{$doc_keyword}` is not a valid identifier
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_doc_fake_variadic_not_valid =
|
2022-06-16 16:50:57 +00:00
|
|
|
`#[doc(fake_variadic)]` must be used on the first of a set of tuple or fn pointer trait impls with varying arity
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_keyword_only_impl =
|
|
|
|
`#[doc(keyword = "...")]` should be used on impl blocks
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_inline_conflict_first =
|
|
|
|
this attribute...
|
|
|
|
|
|
|
|
passes_doc_inline_conflict_second =
|
|
|
|
{"."}..conflicts with this attribute
|
|
|
|
|
|
|
|
passes_doc_inline_conflict =
|
|
|
|
conflicting doc inlining attributes
|
2022-07-11 17:59:04 +00:00
|
|
|
.help = remove one of the conflicting attributes
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_inline_only_use =
|
|
|
|
this attribute can only be applied to a `use` item
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = only applicable on `use` items
|
2022-08-10 07:42:10 +00:00
|
|
|
.not_a_use_item_label = not a `use` item
|
2022-07-11 17:59:04 +00:00
|
|
|
.note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#inline-and-no_inline> for more information
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_doc_attr_not_crate_level =
|
2022-07-11 17:59:04 +00:00
|
|
|
`#![doc({$attr_name} = "...")]` isn't allowed as a crate-level attribute
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_attr_crate_level =
|
|
|
|
this attribute can only be applied at the crate level
|
2022-07-11 17:59:04 +00:00
|
|
|
.suggestion = to apply to the crate, use an inner attribute
|
|
|
|
.help = to apply to the crate, use an inner attribute
|
|
|
|
.note = read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_test_unknown =
|
|
|
|
unknown `doc(test)` attribute `{$path}`
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_test_takes_list =
|
|
|
|
`#[doc(test(...)]` takes a list of attributes
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_primitive =
|
|
|
|
`doc(primitive)` should never have been stable
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_test_unknown_any =
|
|
|
|
unknown `doc` attribute `{$path}`
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_test_unknown_spotlight =
|
|
|
|
unknown `doc` attribute `{$path}`
|
2022-07-11 17:59:04 +00:00
|
|
|
.note = `doc(spotlight)` was renamed to `doc(notable_trait)`
|
|
|
|
.suggestion = use `notable_trait` instead
|
2022-08-10 07:42:10 +00:00
|
|
|
.no_op_note = `doc(spotlight)` is now a no-op
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_test_unknown_include =
|
|
|
|
unknown `doc` attribute `{$path}`
|
2022-07-11 17:59:04 +00:00
|
|
|
.suggestion = use `doc = include_str!` instead
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_doc_invalid =
|
|
|
|
invalid `doc` attribute
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_pass_by_value =
|
|
|
|
`pass_by_value` attribute should be applied to a struct, enum or type alias
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = is not a struct, enum or type alias
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_allow_incoherent_impl =
|
2022-07-11 17:59:04 +00:00
|
|
|
`rustc_allow_incoherent_impl` attribute should be applied to impl items.
|
|
|
|
.label = the only currently supported targets are inherent methods
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_has_incoherent_inherent_impl =
|
2022-07-11 17:59:04 +00:00
|
|
|
`rustc_has_incoherent_inherent_impls` attribute should be applied to types or traits.
|
|
|
|
.label = only adts, extern types and traits are supported
|
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_must_use_async =
|
2022-07-11 17:59:04 +00:00
|
|
|
`must_use` attribute on `async` functions applies to the anonymous `Future` returned by the function, not the value within
|
|
|
|
.label = this attribute does nothing, the `Future`s returned by async functions are already `must_use`
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_must_use_no_effect =
|
|
|
|
`#[must_use]` has no effect when applied to {$article} {$target}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_must_not_suspend =
|
|
|
|
`must_not_suspend` attribute should be applied to a struct, enum, or trait
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = is not a struct, enum, or trait
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_cold =
|
|
|
|
{passes_should_be_applied_to_fn}
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
|
|
|
.label = {passes_should_be_applied_to_fn.label}
|
2022-07-11 17:59:04 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_link =
|
|
|
|
attribute should be applied to an `extern` block with non-Rust ABI
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-11 17:59:04 +00:00
|
|
|
.label = not an `extern` block
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_link_name =
|
|
|
|
attribute should be applied to a foreign function or static
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a foreign function or static
|
|
|
|
.help = try `#[link(name = "{$value}")]` instead
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_link =
|
|
|
|
attribute should be applied to an `extern crate` item
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not an `extern crate` item
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_export_name =
|
|
|
|
attribute should be applied to a free function, impl method or static
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a free function, impl method or static
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_layout_scalar_valid_range_not_struct =
|
|
|
|
attribute should be applied to a struct
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a struct
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_layout_scalar_valid_range_arg =
|
|
|
|
expected exactly one integer literal argument
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_legacy_const_generics_only =
|
|
|
|
#[rustc_legacy_const_generics] functions must only have const generics
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = non-const generic parameter
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_legacy_const_generics_index =
|
|
|
|
#[rustc_legacy_const_generics] must have one index for each generic parameter
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = generic parameters
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_legacy_const_generics_index_exceed =
|
|
|
|
index exceeds number of arguments
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = there {$arg_count ->
|
|
|
|
[one] is
|
|
|
|
*[other] are
|
|
|
|
} only {$arg_count} {$arg_count ->
|
|
|
|
[one] argument
|
|
|
|
*[other] arguments
|
|
|
|
}
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_legacy_const_generics_index_negative =
|
|
|
|
arguments should be non-negative integers
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_dirty_clean =
|
|
|
|
attribute requires -Z query-dep-graph to be enabled
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_link_section =
|
|
|
|
attribute should be applied to a function or static
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a function or static
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_mangle_foreign =
|
|
|
|
`#[no_mangle]` has no effect on a foreign {$foreign_item_kind}
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = foreign {$foreign_item_kind}
|
|
|
|
.note = symbol names in extern blocks are not mangled
|
|
|
|
.suggestion = remove this attribute
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_no_mangle =
|
|
|
|
attribute should be applied to a free function, impl method or static
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a free function, impl method or static
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_repr_ident =
|
|
|
|
meta item in `repr` must be an identifier
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_repr_conflicting =
|
|
|
|
conflicting representation hints
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_used_static =
|
|
|
|
attribute must be applied to a `static` variable
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_used_compiler_linker =
|
|
|
|
`used(compiler)` and `used(linker)` can't be used together
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_allow_internal_unstable =
|
|
|
|
attribute should be applied to a macro
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a macro
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_debug_visualizer_placement =
|
|
|
|
attribute should be applied to a module
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_debug_visualizer_invalid =
|
|
|
|
invalid argument
|
2022-08-10 07:42:10 +00:00
|
|
|
.note_1 = expected: `natvis_file = "..."`
|
|
|
|
.note_2 = OR
|
|
|
|
.note_3 = expected: `gdb_script_file = "..."`
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_debug_visualizer_unreadable =
|
|
|
|
couldn't read {$file}: {$error}
|
2022-09-02 02:54:42 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_allow_const_fn_unstable =
|
|
|
|
attribute should be applied to `const fn`
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a `const fn`
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_std_internal_symbol =
|
|
|
|
attribute should be applied to functions or statics
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a function or static
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_const_trait =
|
|
|
|
attribute should be applied to a trait
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_stability_promotable =
|
|
|
|
attribute cannot be applied to an expression
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_deprecated =
|
|
|
|
attribute is ignored here
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_macro_use =
|
|
|
|
`#[{$name}]` only has an effect on `extern crate` and modules
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_macro_export =
|
|
|
|
`#[macro_export]` only has an effect on macro definitions
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_plugin_registrar =
|
|
|
|
`#[plugin_registrar]` only has an effect on functions
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unused_empty_lints_note =
|
|
|
|
attribute `{$name}` with an empty list has no effect
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unused_no_lints_note =
|
|
|
|
attribute `{$name}` without any lints has no effect
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-08-10 07:42:10 +00:00
|
|
|
passes_unused_default_method_body_const_note =
|
2022-07-19 09:00:16 +00:00
|
|
|
`default_method_body_is_const` has been replaced with `#[const_trait]` on traits
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unused =
|
|
|
|
unused attribute
|
2022-07-19 09:00:16 +00:00
|
|
|
.suggestion = remove this attribute
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_non_exported_macro_invalid_attrs =
|
|
|
|
attribute should be applied to function or closure
|
2022-07-19 09:00:16 +00:00
|
|
|
.label = not a function or closure
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unused_duplicate =
|
|
|
|
unused attribute
|
2022-07-19 09:00:16 +00:00
|
|
|
.suggestion = remove this attribute
|
|
|
|
.note = attribute also specified here
|
2022-08-10 07:42:10 +00:00
|
|
|
.warn = {-passes_previously_accepted}
|
2022-07-19 09:00:16 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unused_multiple =
|
|
|
|
multiple `{$name}` attributes
|
2022-07-19 09:00:16 +00:00
|
|
|
.suggestion = remove this attribute
|
|
|
|
.note = attribute also specified here
|
2022-07-25 12:02:39 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_lint_opt_ty =
|
|
|
|
`#[rustc_lint_opt_ty]` should be applied to a struct
|
2022-07-25 12:02:39 +00:00
|
|
|
.label = not a struct
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_rustc_lint_opt_deny_field_access =
|
|
|
|
`#[rustc_lint_opt_deny_field_access]` should be applied to a field
|
2022-07-25 12:02:39 +00:00
|
|
|
.label = not a field
|
2022-08-03 03:30:27 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_link_ordinal =
|
|
|
|
attribute should be applied to a foreign function or static
|
2022-08-10 07:42:10 +00:00
|
|
|
.label = not a foreign function or static
|
2022-07-21 15:19:22 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_collapse_debuginfo =
|
|
|
|
`collapse_debuginfo` attribute should be applied to macro definitions
|
2022-07-21 15:19:22 +00:00
|
|
|
.label = not a macro definition
|
2022-09-14 18:03:12 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_deprecated_annotation_has_no_effect =
|
|
|
|
this `#[deprecated]` annotation has no effect
|
2022-09-14 18:03:12 +00:00
|
|
|
.suggestion = remove the unnecessary deprecation attribute
|
2022-09-23 00:23:05 +00:00
|
|
|
|
2022-09-22 04:49:30 +00:00
|
|
|
passes_unknown_external_lang_item =
|
|
|
|
unknown external lang item: `{$lang_item}`
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_missing_panic_handler =
|
|
|
|
`#[panic_handler]` function required, but not found
|
2022-08-22 08:05:13 +00:00
|
|
|
|
2022-09-22 16:15:51 +00:00
|
|
|
passes_alloc_func_required =
|
2022-09-21 20:05:15 +00:00
|
|
|
`#[alloc_error_handler]` function required, but not found
|
2022-09-22 16:15:51 +00:00
|
|
|
|
|
|
|
passes_missing_alloc_error_handler =
|
|
|
|
use `#![feature(default_alloc_error_handler)]` for a default error handler
|
2022-08-22 08:05:13 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_missing_lang_item =
|
|
|
|
language item required, but not found: `{$name}`
|
2022-08-22 08:05:13 +00:00
|
|
|
.note = this can occur when a binary crate with `#![no_std]` is compiled for a target where `{$name}` is defined in the standard library
|
|
|
|
.help = you may be able to compile for a target that doesn't need `{$name}`, specify a target with `--target` or in `.cargo/config`
|
2022-09-01 22:11:44 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_lang_item_on_incorrect_target =
|
|
|
|
`{$name}` language item must be applied to a {$expected_target}
|
2022-09-01 22:11:44 +00:00
|
|
|
.label = attribute should be applied to a {$expected_target}, not a {$actual_target}
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_unknown_lang_item =
|
|
|
|
definition of an unknown language item: `{$name}`
|
2022-09-01 22:11:44 +00:00
|
|
|
.label = definition of unknown language item `{$name}`
|
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_local_duplicate_lang_item =
|
|
|
|
found duplicate lang item `{$name}`
|
2022-09-02 03:19:03 +00:00
|
|
|
|
2022-09-21 20:05:15 +00:00
|
|
|
passes_invalid_attr_at_crate_level =
|
|
|
|
`{$name}` attribute cannot be used at crate level
|
2022-09-02 03:19:03 +00:00
|
|
|
.suggestion = perhaps you meant to use an outer attribute
|
2022-09-23 00:23:05 +00:00
|
|
|
|
|
|
|
passes_duplicate_diagnostic_item =
|
|
|
|
duplicate diagnostic item found: `{$name}`.
|
|
|
|
|
|
|
|
passes_duplicate_diagnostic_item_in_crate =
|
|
|
|
duplicate diagnostic item in crate `{$crate_name}`: `{$name}`.
|
|
|
|
|
|
|
|
passes_diagnostic_item_first_defined =
|
|
|
|
the diagnostic item is first defined here
|
|
|
|
.note = the diagnostic item is first defined in crate `{$orig_crate_name}`.
|
2022-09-23 18:23:18 +00:00
|
|
|
|
|
|
|
passes_abi =
|
|
|
|
abi: {$abi}
|
|
|
|
|
|
|
|
passes_align =
|
|
|
|
align: {$align}
|
|
|
|
|
|
|
|
passes_size =
|
|
|
|
size: {$size}
|
|
|
|
|
|
|
|
passes_homogeneous_aggregate =
|
|
|
|
homogeneous_aggregate: {$homogeneous_aggregate}
|
|
|
|
|
|
|
|
passes_layout_of =
|
|
|
|
layout_of({$normalized_ty}) = {$ty_layout}
|
|
|
|
|
|
|
|
passes_unrecognized_field =
|
|
|
|
unrecognized field name `{$name}`
|
|
|
|
|
|
|
|
passes_layout =
|
|
|
|
layout error: {$layout_error}
|
2022-09-24 18:21:58 +00:00
|
|
|
|
|
|
|
passes_feature_stable_twice =
|
|
|
|
feature `{$feature}` is declared stable since {$since}, but was previously declared stable since {$prev_since}
|
|
|
|
|
|
|
|
passes_feature_previously_declared =
|
|
|
|
feature `{$feature}` is declared {$declared}, but was previously declared {$prev_declared}
|
2022-09-24 18:49:29 +00:00
|
|
|
|
|
|
|
passes_expr_not_allowed_in_context =
|
|
|
|
{$expr} is not allowed in a `{$context}`
|
|
|
|
|
|
|
|
passes_const_impl_const_trait =
|
|
|
|
const `impl`s must be for traits marked with `#[const_trait]`
|
|
|
|
.note = this trait must be annotated with `#[const_trait]`
|
2022-09-26 04:52:19 +00:00
|
|
|
|
|
|
|
passes_break_non_loop =
|
|
|
|
`break` with value from a `{$kind}` loop
|
|
|
|
.label = can only break with a value inside `loop` or breakable block
|
|
|
|
.label2 = you can't `break` with a value in a `{$kind}` loop
|
|
|
|
.suggestion = use `break` on its own without a value inside this `{$kind}` loop
|
|
|
|
.break_expr_suggestion = alternatively, you might have meant to use the available loop label
|
|
|
|
|
|
|
|
passes_continue_labeled_block =
|
|
|
|
`continue` pointing to a labeled block
|
|
|
|
.label = labeled blocks cannot be `continue`'d
|
|
|
|
.block_label = labeled block the `continue` points to
|
|
|
|
|
|
|
|
passes_break_inside_closure =
|
|
|
|
`{$name}` inside of a closure
|
|
|
|
.label = cannot `{$name}` inside of a closure
|
|
|
|
.closure_label = enclosing closure
|
|
|
|
|
|
|
|
passes_break_inside_async_block =
|
|
|
|
`{$name}` inside of an `async` block
|
|
|
|
.label = cannot `{$name}` inside of an `async` block
|
|
|
|
.async_block_label = enclosing `async` block
|
|
|
|
|
|
|
|
passes_outside_loop =
|
|
|
|
`{$name}` outside of a loop
|
|
|
|
.label = cannot `{$name}` outside of a loop
|
|
|
|
|
|
|
|
passes_unlabeled_in_labeled_block =
|
|
|
|
unlabeled `{$cf_type}` inside of a labeled block
|
|
|
|
.label = `{$cf_type}` statements that would diverge to or through a labeled block need to bear a label
|
|
|
|
|
|
|
|
passes_unlabeled_cf_in_while_condition =
|
|
|
|
`break` or `continue` with no label in the condition of a `while` loop
|
|
|
|
.label = unlabeled `{$cf_type}` in the condition of a `while` loop
|