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_drop_impl_on_wrong_item =
24 the `Drop` trait may only be implemented for local structs, enums, and unions
25 .label = must be a struct, enum, or union in the current crate
27 hir_analysis_field_already_declared =
28 field `{$field_name}` is already declared
29 .label = field already declared
30 .previous_decl_label = `{$field_name}` first declared here
32 hir_analysis_copy_impl_on_type_with_dtor =
33 the trait `Copy` may not be implemented for this type; the type has a destructor
34 .label = `Copy` not allowed on types with destructors
36 hir_analysis_multiple_relaxed_default_bounds =
37 type parameter has more than one relaxed default bound, only one is supported
39 hir_analysis_copy_impl_on_non_adt =
40 the trait `Copy` may not be implemented for this type
41 .label = type is not a structure or enumeration
43 hir_analysis_trait_object_declared_with_no_traits =
44 at least one trait is required for an object type
45 .alias_span = this alias does not contain a trait
47 hir_analysis_ambiguous_lifetime_bound =
48 ambiguous lifetime bound, explicit lifetime bound required
50 hir_analysis_assoc_type_binding_not_allowed =
51 associated type bindings are not allowed here
52 .label = associated type not allowed here
54 hir_analysis_typeof_reserved_keyword_used =
55 `typeof` is a reserved keyword but unimplemented
56 .suggestion = consider replacing `typeof(...)` with an actual type
57 .label = reserved keyword
59 hir_analysis_value_of_associated_struct_already_specified =
60 the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified
61 .label = re-bound here
62 .previous_bound_label = `{$item_name}` bound here first
64 hir_analysis_unconstrained_opaque_type = unconstrained opaque type
65 .note = `{$name}` must be used in combination with a concrete type within the same {$what}
67 hir_analysis_missing_type_params =
68 the type {$parameterCount ->
71 } {$parameters} must be explicitly specified
72 .label = type {$parameterCount ->
75 } {$parameters} must be specified for this
76 .suggestion = set the type {$parameterCount ->
79 } to the desired {$parameterCount ->
83 .no_suggestion_label = missing {$parameterCount ->
87 .note = because of the default `Self` reference, type parameters must be specified on object types
89 hir_analysis_manual_implementation =
90 manual implementations of `{$trait_name}` are experimental
91 .label = manual implementations of `{$trait_name}` are experimental
92 .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
94 hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl
96 hir_analysis_unused_extern_crate =
98 .suggestion = remove it
100 hir_analysis_extern_crate_not_idiomatic =
101 `extern crate` is not idiomatic in the new edition
102 .suggestion = convert it to a `{$msg_code}`
104 hir_analysis_const_impl_for_non_const_trait =
105 const `impl` for trait `{$trait_name}` which is not marked with `#[const_trait]`
106 .suggestion = mark `{$trait_name}` as const
107 .note = marking a trait with `#[const_trait]` ensures all default method bodies are `const`
108 .adding = adding a non-const method body in the future would be a breaking change
110 hir_analysis_const_bound_for_non_const_trait =
111 ~const can only be applied to `#[const_trait]` traits
113 hir_analysis_self_in_impl_self =
114 `Self` is not valid in the self type of an impl block
115 .note = replace `Self` with a different type
117 hir_analysis_linkage_type =
118 invalid type for variable with `#[linkage]` attribute