]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | hir_analysis_field_multiply_specified_in_initializer = |
04454e1e FG |
2 | field `{$ident}` specified more than once |
3 | .label = used more than once | |
f2b60f7d | 4 | .previous_use_label = first use of `{$ident}` |
04454e1e | 5 | |
2b03887a | 6 | hir_analysis_unrecognized_atomic_operation = |
04454e1e FG |
7 | unrecognized atomic operation function: `{$op}` |
8 | .label = unrecognized atomic operation | |
9 | ||
2b03887a | 10 | hir_analysis_wrong_number_of_generic_arguments_to_intrinsic = |
04454e1e FG |
11 | intrinsic has wrong number of {$descr} parameters: found {$found}, expected {$expected} |
12 | .label = expected {$expected} {$descr} {$expected -> | |
13 | [one] parameter | |
14 | *[other] parameters | |
15 | } | |
16 | ||
2b03887a | 17 | hir_analysis_unrecognized_intrinsic_function = |
04454e1e FG |
18 | unrecognized intrinsic function: `{$name}` |
19 | .label = unrecognized intrinsic | |
20 | ||
2b03887a | 21 | hir_analysis_lifetimes_or_bounds_mismatch_on_trait = |
04454e1e FG |
22 | lifetime parameters or bounds on {$item_kind} `{$ident}` do not match the trait declaration |
23 | .label = lifetimes do not match {$item_kind} in trait | |
f2b60f7d | 24 | .generics_label = lifetimes in impl do not match this {$item_kind} in trait |
04454e1e | 25 | |
2b03887a | 26 | hir_analysis_drop_impl_on_wrong_item = |
f2b60f7d FG |
27 | the `Drop` trait may only be implemented for local structs, enums, and unions |
28 | .label = must be a struct, enum, or union in the current crate | |
04454e1e | 29 | |
2b03887a | 30 | hir_analysis_field_already_declared = |
04454e1e FG |
31 | field `{$field_name}` is already declared |
32 | .label = field already declared | |
f2b60f7d | 33 | .previous_decl_label = `{$field_name}` first declared here |
04454e1e | 34 | |
2b03887a | 35 | hir_analysis_copy_impl_on_type_with_dtor = |
04454e1e FG |
36 | the trait `Copy` may not be implemented for this type; the type has a destructor |
37 | .label = `Copy` not allowed on types with destructors | |
38 | ||
2b03887a | 39 | hir_analysis_multiple_relaxed_default_bounds = |
04454e1e FG |
40 | type parameter has more than one relaxed default bound, only one is supported |
41 | ||
2b03887a | 42 | hir_analysis_copy_impl_on_non_adt = |
04454e1e FG |
43 | the trait `Copy` may not be implemented for this type |
44 | .label = type is not a structure or enumeration | |
45 | ||
2b03887a | 46 | hir_analysis_trait_object_declared_with_no_traits = |
04454e1e | 47 | at least one trait is required for an object type |
f2b60f7d | 48 | .alias_span = this alias does not contain a trait |
04454e1e | 49 | |
2b03887a | 50 | hir_analysis_ambiguous_lifetime_bound = |
04454e1e FG |
51 | ambiguous lifetime bound, explicit lifetime bound required |
52 | ||
2b03887a | 53 | hir_analysis_assoc_type_binding_not_allowed = |
04454e1e FG |
54 | associated type bindings are not allowed here |
55 | .label = associated type not allowed here | |
56 | ||
2b03887a | 57 | hir_analysis_functional_record_update_on_non_struct = |
04454e1e FG |
58 | functional record update syntax requires a struct |
59 | ||
2b03887a | 60 | hir_analysis_typeof_reserved_keyword_used = |
04454e1e FG |
61 | `typeof` is a reserved keyword but unimplemented |
62 | .suggestion = consider replacing `typeof(...)` with an actual type | |
63 | .label = reserved keyword | |
64 | ||
2b03887a | 65 | hir_analysis_return_stmt_outside_of_fn_body = |
04454e1e | 66 | return statement outside of function body |
f2b60f7d FG |
67 | .encl_body_label = the return is part of this body... |
68 | .encl_fn_label = ...not the enclosing function body | |
04454e1e | 69 | |
2b03887a | 70 | hir_analysis_yield_expr_outside_of_generator = |
04454e1e FG |
71 | yield expression outside of generator literal |
72 | ||
2b03887a | 73 | hir_analysis_struct_expr_non_exhaustive = |
04454e1e FG |
74 | cannot create non-exhaustive {$what} using struct expression |
75 | ||
2b03887a | 76 | hir_analysis_method_call_on_unknown_type = |
04454e1e FG |
77 | the type of this value must be known to call a method on a raw pointer on it |
78 | ||
2b03887a | 79 | hir_analysis_value_of_associated_struct_already_specified = |
04454e1e FG |
80 | the value of the associated type `{$item_name}` (from trait `{$def_path}`) is already specified |
81 | .label = re-bound here | |
f2b60f7d | 82 | .previous_bound_label = `{$item_name}` bound here first |
04454e1e | 83 | |
2b03887a | 84 | hir_analysis_address_of_temporary_taken = cannot take address of a temporary |
04454e1e FG |
85 | .label = temporary value |
86 | ||
2b03887a | 87 | hir_analysis_add_return_type_add = try adding a return type |
04454e1e | 88 | |
2b03887a | 89 | hir_analysis_add_return_type_missing_here = a return type might be missing here |
04454e1e | 90 | |
2b03887a | 91 | hir_analysis_expected_default_return_type = expected `()` because of default return type |
04454e1e | 92 | |
2b03887a | 93 | hir_analysis_expected_return_type = expected `{$expected}` because of return type |
04454e1e | 94 | |
2b03887a FG |
95 | hir_analysis_unconstrained_opaque_type = unconstrained opaque type |
96 | .note = `{$name}` must be used in combination with a concrete type within the same {$what} | |
04454e1e | 97 | |
2b03887a | 98 | hir_analysis_missing_type_params = |
04454e1e FG |
99 | the type {$parameterCount -> |
100 | [one] parameter | |
101 | *[other] parameters | |
102 | } {$parameters} must be explicitly specified | |
103 | .label = type {$parameterCount -> | |
104 | [one] parameter | |
105 | *[other] parameters | |
106 | } {$parameters} must be specified for this | |
107 | .suggestion = set the type {$parameterCount -> | |
108 | [one] parameter | |
109 | *[other] parameters | |
110 | } to the desired {$parameterCount -> | |
111 | [one] type | |
112 | *[other] types | |
113 | } | |
f2b60f7d | 114 | .no_suggestion_label = missing {$parameterCount -> |
04454e1e FG |
115 | [one] reference |
116 | *[other] references | |
117 | } to {$parameters} | |
118 | .note = because of the default `Self` reference, type parameters must be specified on object types | |
119 | ||
2b03887a | 120 | hir_analysis_manual_implementation = |
04454e1e FG |
121 | manual implementations of `{$trait_name}` are experimental |
122 | .label = manual implementations of `{$trait_name}` are experimental | |
123 | .help = add `#![feature(unboxed_closures)]` to the crate attributes to enable | |
124 | ||
2b03887a | 125 | hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl |
f2b60f7d | 126 | |
2b03887a | 127 | hir_analysis_unused_extern_crate = |
f2b60f7d FG |
128 | unused extern crate |
129 | .suggestion = remove it | |
130 | ||
2b03887a | 131 | hir_analysis_extern_crate_not_idiomatic = |
f2b60f7d FG |
132 | `extern crate` is not idiomatic in the new edition |
133 | .suggestion = convert it to a `{$msg_code}` | |
134 | ||
2b03887a FG |
135 | hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)` |
136 | ||
137 | hir_analysis_missing_parentheses_in_range = can't call method `{$method_name}` on type `{$ty_str}` | |
138 | ||
139 | hir_analysis_add_missing_parentheses_in_range = you must surround the range in parentheses to call its `{$func_name}` function | |
140 | ||
141 | hir_analysis_const_impl_for_non_const_trait = | |
142 | const `impl` for trait `{$trait_name}` which is not marked with `#[const_trait]` | |
143 | .suggestion = mark `{$trait_name}` as const | |
144 | .note = marking a trait with `#[const_trait]` ensures all default method bodies are `const` | |
145 | .adding = adding a non-const method body in the future would be a breaking change | |
146 | ||
147 | hir_analysis_const_bound_for_non_const_trait = | |
148 | ~const can only be applied to `#[const_trait]` traits | |
149 | ||
150 | hir_analysis_self_in_impl_self = | |
151 | `Self` is not valid in the self type of an impl block | |
152 | .note = replace `Self` with a different type |