@@ -11,6 +11,8 @@ resolve_added_macro_use =
11
11
resolve_ancestor_only =
12
12
visibilities can only be restricted to ancestor modules
13
13
14
+ resolve_arguments_macro_use_not_allowed = arguments to `macro_use` are not allowed here
15
+
14
16
resolve_associated_const_with_similar_name_exists =
15
17
there is an associated constant with a similar name
16
18
@@ -20,6 +22,10 @@ resolve_associated_fn_with_similar_name_exists =
20
22
resolve_associated_type_with_similar_name_exists =
21
23
there is an associated type with a similar name
22
24
25
+ resolve_attempt_to_define_builtin_macro_twice =
26
+ attempted to define built-in macro more than once
27
+ .note = previously defined here
28
+
23
29
resolve_attempt_to_use_non_constant_value_in_constant =
24
30
attempt to use a non-constant value in a constant
25
31
@@ -32,6 +38,8 @@ resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion =
32
38
resolve_attempt_to_use_non_constant_value_in_constant_without_suggestion =
33
39
this would need to be a `{ $suggestion } `
34
40
41
+ resolve_bad_macro_import = bad macro import
42
+
35
43
resolve_binding_in_never_pattern =
36
44
never patterns cannot contain variable bindings
37
45
.suggestion = use a wildcard `_` instead
@@ -100,13 +108,31 @@ resolve_const_param_in_non_trivial_anon_const =
100
108
resolve_const_param_in_ty_of_const_param =
101
109
const parameters may not be used in the type of const parameters
102
110
103
- resolve_expected_found =
111
+ resolve_elided_anonymous_lifetime_report_error =
112
+ `&` without an explicit lifetime name cannot be used here
113
+ .label = explicit lifetime name needed here
114
+
115
+ resolve_elided_anonymous_lifetime_report_error_suggestion =
116
+ consider introducing a higher-ranked lifetime here
117
+
118
+ resolve_expected_module_found =
104
119
expected module, found { $res } `{ $path_str } `
105
120
.label = not a module
106
121
122
+ resolve_explicit_anonymous_lifetime_report_error =
123
+ `'_` cannot be used here
124
+ .label = `'_` is a reserved lifetime name
125
+
107
126
resolve_explicit_unsafe_traits =
108
127
unsafe traits like `{ $ident } ` should be implemented explicitly
109
128
129
+ resolve_extern_crate_loading_macro_not_at_crate_root =
130
+ an `extern crate` loading macros must be at the crate root
131
+
132
+ resolve_extern_crate_self_requires_renaming =
133
+ `extern crate self;` requires renaming
134
+ .suggestion = rename the `self` crate to be able to import it
135
+
110
136
resolve_forward_declared_generic_param =
111
137
generic parameters with a default cannot use forward declared identifiers
112
138
.label = defaulted generic parameters cannot be forward declared
@@ -135,17 +161,20 @@ resolve_generic_params_from_outer_item_static = a `static` is a separate item fr
135
161
136
162
resolve_generic_params_from_outer_item_ty_param = type parameter from outer item
137
163
138
-
139
164
resolve_ident_bound_more_than_once_in_parameter_list =
140
165
identifier `{ $identifier } ` is bound more than once in this parameter list
141
166
.label = used as parameter more than once
142
167
168
+ resolve_implicit_elided_lifetimes_not_allowed_here = implicit elided lifetime not allowed here
169
+
143
170
resolve_ident_bound_more_than_once_in_same_pattern =
144
171
identifier `{ $identifier } ` is bound more than once in the same pattern
145
172
.label = used in a pattern more than once
146
173
147
174
resolve_imported_crate = `$crate` may not be imported
148
175
176
+ resolve_imported_macro_not_found = imported macro not found
177
+
149
178
resolve_imports_cannot_refer_to =
150
179
imports cannot refer to { $what }
151
180
@@ -183,11 +212,22 @@ resolve_lowercase_self =
183
212
resolve_macro_defined_later =
184
213
a macro with the same name exists, but it appears later at here
185
214
215
+ resolve_macro_expanded_extern_crate_cannot_shadow_extern_arguments =
216
+ macro-expanded `extern crate` items cannot shadow names passed with `--extern`
217
+
186
218
resolve_macro_expected_found =
187
219
expected { $expected } , found { $found } `{ $macro_path } `
188
220
221
+ resolve_macro_extern_deprecated =
222
+ `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
223
+ .help = try an outer attribute: `#[macro_use]`
224
+
189
225
resolve_macro_use_extern_crate_self = `#[macro_use]` is not supported on `extern crate self`
190
226
227
+ resolve_macro_use_name_already_in_use =
228
+ `{ $name } ` is already in scope
229
+ .note = macro-expanded `#[macro_use]`s may not shadow existing macros (see RFC 1560)
230
+
191
231
resolve_method_not_member_of_trait =
192
232
method `{ $method } ` is not a member of trait `{ $trait_ } `
193
233
.label = not a member of trait `{ $trait_ } `
@@ -217,6 +257,8 @@ resolve_param_in_ty_of_const_param =
217
257
the type of const parameters must not depend on other generic parameters
218
258
.label = the type must not depend on the parameter `{ $name } `
219
259
260
+ resolve_pattern_doesnt_bind_name = pattern doesn't bind `{ $name } `
261
+
220
262
resolve_proc_macro_same_crate = can't use a procedural macro from the same crate that defines it
221
263
.help = you can define integration tests in a directory named `tests`
222
264
@@ -254,6 +296,9 @@ resolve_self_in_generic_param_default =
254
296
generic parameters cannot use `Self` in their defaults
255
297
.label = `Self` in generic parameter default
256
298
299
+ resolve_static_lifetime_is_reserved = invalid lifetime parameter name: `{ $ident } `
300
+ .label = 'static is a reserved lifetime name
301
+
257
302
resolve_tool_module_imported =
258
303
cannot use a tool module through an import
259
304
.note = the tool module imported here
@@ -284,12 +329,18 @@ resolve_undeclared_label =
284
329
use of undeclared label `{ $name } `
285
330
.label = undeclared label `{ $name } `
286
331
332
+ resolve_underscore_lifetime_is_reserved = `'_` cannot be used here
333
+ .label = `'_` is a reserved lifetime name
334
+
287
335
resolve_unexpected_res_change_ty_to_const_param_sugg =
288
336
you might have meant to write a const parameter here
289
337
290
338
resolve_unexpected_res_use_at_op_in_slice_pat_with_range_sugg =
291
339
if you meant to collect the rest of the slice in `{ $ident } `, use the at operator
292
340
341
+ resolve_unnamed_crate_root_import =
342
+ crate root imports need to be explicitly named: `use crate as name;`
343
+
293
344
resolve_unreachable_label =
294
345
use of unreachable label `{ $name } `
295
346
.label = unreachable label `{ $name } `
@@ -312,3 +363,8 @@ resolve_variable_bound_with_different_mode =
312
363
variable `{ $variable_name } ` is bound inconsistently across alternatives separated by `|`
313
364
.label = bound in different ways
314
365
.first_binding_span = first binding
366
+
367
+ resolve_variable_is_not_bound_in_all_patterns =
368
+ variable `{ $name } ` is not bound in all patterns
369
+
370
+ resolve_variable_not_in_all_patterns = variable not in all patterns
0 commit comments