fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
11.1 KiB309 linesraw
1resolve_accessible_unsure = not sure whether the path is accessible or not
2    .note = the type may have associated items, but we are currently not checking them
3
4resolve_add_as_non_derive =
5    add as non-Derive macro
6    `#[{$macro_path}]`
7
8resolve_added_macro_use =
9    have you added the `#[macro_use]` on the module/import?
10
11resolve_ampersand_used_without_explicit_lifetime_name =
12    `&` without an explicit lifetime name cannot be used here
13    .note = explicit lifetime name needed here
14
15resolve_ancestor_only =
16    visibilities can only be restricted to ancestor modules
17
18resolve_associated_const_with_similar_name_exists =
19    there is an associated constant with a similar name
20
21resolve_associated_fn_with_similar_name_exists =
22    there is an associated function with a similar name
23
24resolve_associated_type_with_similar_name_exists =
25    there is an associated type with a similar name
26
27resolve_attempt_to_use_non_constant_value_in_constant =
28    attempt to use a non-constant value in a constant
29
30resolve_attempt_to_use_non_constant_value_in_constant_label_with_suggestion =
31    non-constant value
32
33resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion =
34    consider using `{$suggestion}` instead of `{$current}`
35
36resolve_attempt_to_use_non_constant_value_in_constant_without_suggestion =
37    this would need to be a `{$suggestion}`
38
39resolve_binding_shadows_something_unacceptable =
40    {$shadowing_binding}s cannot shadow {$shadowed_binding}s
41    .label = cannot be named the same as {$article} {$shadowed_binding}
42    .label_shadowed_binding = the {$shadowed_binding} `{$name}` is {$participle} here
43
44resolve_binding_shadows_something_unacceptable_suggestion =
45    try specify the pattern arguments
46
47resolve_cannot_be_reexported_crate_public =
48    `{$ident}` is only public within the crate, and cannot be re-exported outside
49
50resolve_cannot_be_reexported_private =
51    `{$ident}` is private, and cannot be re-exported
52
53resolve_cannot_capture_dynamic_environment_in_fn_item =
54    can't capture dynamic environment in a fn item
55    .help = use the `|| {"{"} ... {"}"}` closure form instead
56
57resolve_cannot_determine_import_resolution =
58    cannot determine resolution for the import
59    .note = import resolution is stuck, try simplifying other imports
60
61resolve_cannot_determine_macro_resolution =
62    cannot determine resolution for the {$kind} `{$path}`
63    .note = import resolution is stuck, try simplifying macro imports
64
65resolve_cannot_find_ident_in_this_scope =
66    cannot find {$expected} `{$ident}` in this scope
67
68resolve_cannot_glob_import_possible_crates =
69    cannot glob-import all possible crates
70
71resolve_change_import_binding =
72    you can use `as` to change the binding name of the import
73
74resolve_consider_adding_a_derive =
75    consider adding a derive
76
77resolve_consider_adding_macro_export =
78    consider adding a `#[macro_export]` to the macro in the imported module
79
80resolve_consider_declaring_with_pub =
81    consider declaring type or module `{$ident}` with `pub`
82
83resolve_consider_marking_as_pub =
84    consider marking `{$ident}` as `pub` in the imported module
85
86resolve_const_not_member_of_trait =
87    const `{$const_}` is not a member of trait `{$trait_}`
88    .label = not a member of trait `{$trait_}`
89
90resolve_const_param_in_enum_discriminant =
91    const parameters may not be used in enum discriminant values
92
93resolve_const_param_in_non_trivial_anon_const =
94    const parameters may only be used as standalone arguments, i.e. `{$name}`
95
96resolve_const_param_in_ty_of_const_param =
97    const parameters may not be used in the type of const parameters
98
99resolve_crate_may_not_be_imported =
100    `$crate` may not be imported
101
102resolve_crate_root_imports_must_be_named_explicitly =
103    crate root imports need to be explicitly named: `use crate as name;`
104
105resolve_expected_found =
106    expected module, found {$res} `{$path_str}`
107    .label = not a module
108
109resolve_explicit_unsafe_traits =
110    unsafe traits like `{$ident}` should be implemented explicitly
111
112resolve_forward_declared_generic_param =
113    generic parameters with a default cannot use forward declared identifiers
114    .label = defaulted generic parameters cannot be forward declared
115
116resolve_generic_params_from_outer_item =
117    can't use generic parameters from outer item
118    .label = use of generic parameter from outer item
119    .refer_to_type_directly = refer to the type directly here instead
120    .suggestion = try introducing a local generic parameter here
121
122resolve_generic_params_from_outer_item_const_param = const parameter from outer item
123
124resolve_generic_params_from_outer_item_self_ty_alias = `Self` type implicitly declared here, by this `impl`
125
126resolve_generic_params_from_outer_item_self_ty_param = can't use `Self` here
127
128resolve_generic_params_from_outer_item_ty_param = type parameter from outer item
129
130resolve_glob_import_doesnt_reexport =
131    glob import doesn't reexport anything because no candidate is public enough
132
133resolve_ident_bound_more_than_once_in_parameter_list =
134    identifier `{$identifier}` is bound more than once in this parameter list
135    .label = used as parameter more than once
136
137resolve_ident_bound_more_than_once_in_same_pattern =
138    identifier `{$identifier}` is bound more than once in the same pattern
139    .label = used in a pattern more than once
140
141resolve_imported_crate = `$crate` may not be imported
142
143resolve_imports_cannot_refer_to =
144    imports cannot refer to {$what}
145
146resolve_indeterminate =
147    cannot determine resolution for the visibility
148
149resolve_invalid_asm_sym =
150    invalid `sym` operand
151    .label = is a local variable
152    .help = `sym` operands must refer to either a function or a static
153
154resolve_is_not_directly_importable =
155    `{$target}` is not directly importable
156    .label = cannot be imported directly
157
158resolve_items_in_traits_are_not_importable =
159    items in traits are not importable
160
161resolve_label_with_similar_name_reachable =
162    a label with a similar name is reachable
163
164resolve_lifetime_param_in_enum_discriminant =
165    lifetime parameters may not be used in enum discriminant values
166
167resolve_lifetime_param_in_non_trivial_anon_const =
168    lifetime parameters may not be used in const expressions
169
170resolve_lifetime_param_in_ty_of_const_param =
171    lifetime parameters may not be used in the type of const parameters
172
173resolve_lowercase_self =
174    attempt to use a non-constant value in a constant
175    .suggestion = try using `Self`
176
177resolve_macro_expected_found =
178    expected {$expected}, found {$found} `{$macro_path}`
179
180resolve_macro_use_extern_crate_self = `#[macro_use]` is not supported on `extern crate self`
181
182resolve_method_not_member_of_trait =
183    method `{$method}` is not a member of trait `{$trait_}`
184    .label = not a member of trait `{$trait_}`
185
186resolve_module_only =
187    visibility must resolve to a module
188
189resolve_name_is_already_used_as_generic_parameter =
190    the name `{$name}` is already used for a generic parameter in this item's generic parameters
191    .label = already used
192    .first_use_of_name = first use of `{$name}`
193
194resolve_param_in_enum_discriminant =
195    generic parameters may not be used in enum discriminant values
196    .label = cannot perform const operation using `{$name}`
197
198resolve_param_in_non_trivial_anon_const =
199    generic parameters may not be used in const operations
200    .label = cannot perform const operation using `{$name}`
201
202resolve_param_in_non_trivial_anon_const_help =
203    use `#![feature(generic_const_exprs)]` to allow generic const expressions
204
205resolve_param_in_ty_of_const_param =
206    the type of const parameters must not depend on other generic parameters
207    .label = the type must not depend on the parameter `{$name}`
208
209resolve_parent_module_reset_for_binding =
210    parent module is reset for binding
211
212resolve_proc_macro_same_crate = can't use a procedural macro from the same crate that defines it
213    .help = you can define integration tests in a directory named `tests`
214
215resolve_reexport_of_crate_public =
216    re-export of crate public `{$ident}`
217
218resolve_reexport_of_private =
219    re-export of private `{$ident}`
220
221resolve_relative_2018 =
222    relative paths are not supported in visibilities in 2018 edition or later
223    .suggestion = try
224
225resolve_remove_surrounding_derive =
226    remove from the surrounding `derive()`
227
228resolve_self_import_can_only_appear_once_in_the_list =
229    `self` import can only appear once in an import list
230    .label = can only appear once in an import list
231
232resolve_self_import_only_in_import_list_with_non_empty_prefix =
233    `self` import can only appear in an import list with a non-empty prefix
234    .label = can only appear in an import list with a non-empty prefix
235
236resolve_self_imports_only_allowed_within =
237    `self` imports are only allowed within a {"{"} {"}"} list
238
239resolve_self_imports_only_allowed_within_multipart_suggestion =
240    alternatively, use the multi-path `use` syntax to import `self`
241
242resolve_self_imports_only_allowed_within_suggestion =
243    consider importing the module directly
244
245resolve_self_in_generic_param_default =
246    generic parameters cannot use `Self` in their defaults
247    .label = `Self` in generic parameter default
248
249resolve_tool_module_imported =
250    cannot use a tool module through an import
251    .note = the tool module imported here
252
253resolve_trait_impl_duplicate =
254    duplicate definitions with name `{$name}`:
255    .label = duplicate definition
256    .old_span_label = previous definition here
257    .trait_item_span = item in trait
258
259resolve_trait_impl_mismatch =
260    item `{$name}` is an associated {$kind}, which doesn't match its trait `{$trait_path}`
261    .label = does not match trait
262    .label_trait_item = item in trait
263
264resolve_try_using_similarly_named_label =
265    try using similarly named label
266
267resolve_type_not_member_of_trait =
268    type `{$type_}` is not a member of trait `{$trait_}`
269    .label = not a member of trait `{$trait_}`
270
271resolve_type_param_in_enum_discriminant =
272    type parameters may not be used in enum discriminant values
273
274resolve_type_param_in_non_trivial_anon_const =
275    type parameters may not be used in const expressions
276
277resolve_type_param_in_ty_of_const_param =
278    type parameters may not be used in the type of const parameters
279
280resolve_undeclared_label =
281    use of undeclared label `{$name}`
282    .label = undeclared label `{$name}`
283
284resolve_underscore_lifetime_name_cannot_be_used_here =
285    `'_` cannot be used here
286    .note = `'_` is a reserved lifetime name
287
288resolve_unreachable_label =
289    use of unreachable label `{$name}`
290    .label = unreachable label `{$name}`
291    .label_definition_span = unreachable label defined here
292    .note = labels are unreachable through functions, closures, async blocks and modules
293
294resolve_unreachable_label_similar_name_reachable =
295    a label with a similar name is reachable
296
297resolve_unreachable_label_similar_name_unreachable =
298    a label with a similar name exists but is also unreachable
299
300resolve_unreachable_label_suggestion_use_similarly_named =
301    try using similarly named label
302
303resolve_unreachable_label_with_similar_name_exists =
304    a label with a similar name exists but is unreachable
305
306resolve_variable_bound_with_different_mode =
307    variable `{$variable_name}` is bound inconsistently across alternatives separated by `|`
308    .label = bound in different ways
309    .first_binding_span = first binding