1 hir_analysis_unrecognized_atomic_operation =
2 unrecognized atomic operation function: `{$op}`
3 .label = unrecognized atomic operation
5 hir_analysis_wrong_number_of_generic_arguments_to_intrinsic =
6 intrinsic has wrong number of {$descr} parameters: found {$found}, expected {$expected}
7 .label = expected {$expected} {$descr} {$expected ->
12 hir_analysis_unrecognized_intrinsic_function =
13 unrecognized intrinsic function: `{$name}`
14 .label = unrecognized intrinsic
16 hir_analysis_lifetimes_or_bounds_mismatch_on_trait =
17 lifetime parameters or bounds on {$item_kind} `{$ident}` do not match the trait declaration
18 .label = lifetimes do not match {$item_kind} in trait
19 .generics_label = lifetimes in impl do not match this {$item_kind} in trait
20 .where_label = this `where` clause might not match the one in the trait
21 .bounds_label = this bound might be missing in the impl
23 hir_analysis_async_trait_impl_should_be_async =
24 method `{$method_name}` should be async because the method from the trait is async
25 .trait_item_label = required because the trait method is async
27 hir_analysis_drop_impl_on_wrong_item =
28 the `Drop` trait may only be implemented for local structs, enums, and unions
29 .label = must be a struct, enum, or union in the current crate
31 hir_analysis_field_already_declared =
32 field `{$field_name}` is already declared
33 .label = field already declared
34 .previous_decl_label = `{$field_name}` first declared here
36 hir_analysis_copy_impl_on_type_with_dtor =
37 the trait `Copy` may not be implemented for this type; the type has a destructor
38 .label = `Copy` not allowed on types with destructors
40 hir_analysis_multiple_relaxed_default_bounds =
41 type parameter has more than one relaxed default bound, only one is supported
43 hir_analysis_copy_impl_on_non_adt =
44 the trait `Copy` may not be implemented for this type
45 .label = type is not a structure or enumeration
47 hir_analysis_trait_object_declared_with_no_traits =
48 at least one trait is required for an object type
49 .alias_span = this alias does not contain a trait
51 hir_analysis_ambiguous_lifetime_bound =
52 ambiguous lifetime bound, explicit lifetime bound required
54 hir_analysis_assoc_type_binding_not_allowed =
55 associated type bindings are not allowed here
56 .label = associated type not allowed here
58 hir_analysis_typeof_reserved_keyword_used =
59 `typeof` is a reserved keyword but unimplemented
60 .suggestion = consider replacing `typeof(...)` with an actual type
61 .label = reserved keyword
63 hir_analysis_value_of_associated_struct_already_specified =
64 the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified
65 .label = re-bound here
66 .previous_bound_label = `{$item_name}` bound here first
68 hir_analysis_unconstrained_opaque_type = unconstrained opaque type
69 .note = `{$name}` must be used in combination with a concrete type within the same {$what}
71 hir_analysis_missing_type_params =
72 the type {$parameterCount ->
75 } {$parameters} must be explicitly specified
76 .label = type {$parameterCount ->
79 } {$parameters} must be specified for this
80 .suggestion = set the type {$parameterCount ->
83 } to the desired {$parameterCount ->
87 .no_suggestion_label = missing {$parameterCount ->
91 .note = because of the default `Self` reference, type parameters must be specified on object types
93 hir_analysis_manual_implementation =
94 manual implementations of `{$trait_name}` are experimental
95 .label = manual implementations of `{$trait_name}` are experimental
96 .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
98 hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl
100 hir_analysis_unused_extern_crate =
102 .suggestion = remove it
104 hir_analysis_extern_crate_not_idiomatic =
105 `extern crate` is not idiomatic in the new edition
106 .suggestion = convert it to a `{$msg_code}`
108 hir_analysis_const_impl_for_non_const_trait =
109 const `impl` for trait `{$trait_name}` which is not marked with `#[const_trait]`
110 .suggestion = mark `{$trait_name}` as const
111 .note = marking a trait with `#[const_trait]` ensures all default method bodies are `const`
112 .adding = adding a non-const method body in the future would be a breaking change
114 hir_analysis_const_bound_for_non_const_trait =
115 ~const can only be applied to `#[const_trait]` traits
117 hir_analysis_self_in_impl_self =
118 `Self` is not valid in the self type of an impl block
119 .note = replace `Self` with a different type
121 hir_analysis_linkage_type =
122 invalid type for variable with `#[linkage]` attribute
124 hir_analysis_auto_deref_reached_recursion_limit = reached the recursion limit while auto-dereferencing `{$ty}`
125 .label = deref recursion limit reached
126 .help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)