@@ -11,6 +11,8 @@ resolve_added_macro_use =
1111resolve_ancestor_only =
1212 visibilities can only be restricted to ancestor modules
1313
14+ resolve_arguments_macro_use_not_allowed = arguments to `macro_use` are not allowed here
15+
1416resolve_associated_const_with_similar_name_exists =
1517 there is an associated constant with a similar name
1618
@@ -20,6 +22,10 @@ resolve_associated_fn_with_similar_name_exists =
2022resolve_associated_type_with_similar_name_exists =
2123 there is an associated type with a similar name
2224
25+ resolve_attempt_to_define_builtin_macro_twice =
26+ attempted to define built-in macro more than once
27+ .note = previously defined here
28+
2329resolve_attempt_to_use_non_constant_value_in_constant =
2430 attempt to use a non-constant value in a constant
2531
@@ -32,6 +38,8 @@ resolve_attempt_to_use_non_constant_value_in_constant_with_suggestion =
3238resolve_attempt_to_use_non_constant_value_in_constant_without_suggestion =
3339 this would need to be a `{ $suggestion } `
3440
41+ resolve_bad_macro_import = bad macro import
42+
3543resolve_binding_in_never_pattern =
3644 never patterns cannot contain variable bindings
3745 .suggestion = use a wildcard `_` instead
@@ -100,13 +108,31 @@ resolve_const_param_in_non_trivial_anon_const =
100108resolve_const_param_in_ty_of_const_param =
101109 const parameters may not be used in the type of const parameters
102110
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 =
104119 expected module, found { $res } `{ $path_str } `
105120 .label = not a module
106121
122+ resolve_explicit_anonymous_lifetime_report_error =
123+ `'_` cannot be used here
124+ .label = `'_` is a reserved lifetime name
125+
107126resolve_explicit_unsafe_traits =
108127 unsafe traits like `{ $ident } ` should be implemented explicitly
109128
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+
110136resolve_forward_declared_generic_param =
111137 generic parameters with a default cannot use forward declared identifiers
112138 .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
135161
136162resolve_generic_params_from_outer_item_ty_param = type parameter from outer item
137163
138-
139164resolve_ident_bound_more_than_once_in_parameter_list =
140165 identifier `{ $identifier } ` is bound more than once in this parameter list
141166 .label = used as parameter more than once
142167
168+ resolve_implicit_elided_lifetimes_not_allowed_here = implicit elided lifetime not allowed here
169+
143170resolve_ident_bound_more_than_once_in_same_pattern =
144171 identifier `{ $identifier } ` is bound more than once in the same pattern
145172 .label = used in a pattern more than once
146173
147174resolve_imported_crate = `$crate` may not be imported
148175
176+ resolve_imported_macro_not_found = imported macro not found
177+
149178resolve_imports_cannot_refer_to =
150179 imports cannot refer to { $what }
151180
@@ -183,11 +212,22 @@ resolve_lowercase_self =
183212resolve_macro_defined_later =
184213 a macro with the same name exists, but it appears later at here
185214
215+ resolve_macro_expanded_extern_crate_cannot_shadow_extern_arguments =
216+ macro-expanded `extern crate` items cannot shadow names passed with `--extern`
217+
186218resolve_macro_expected_found =
187219 expected { $expected } , found { $found } `{ $macro_path } `
188220
221+ resolve_macro_extern_deprecated =
222+ `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
223+ .help = try an outer attribute: `#[macro_use]`
224+
189225resolve_macro_use_extern_crate_self = `#[macro_use]` is not supported on `extern crate self`
190226
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+
191231resolve_method_not_member_of_trait =
192232 method `{ $method } ` is not a member of trait `{ $trait_ } `
193233 .label = not a member of trait `{ $trait_ } `
@@ -217,6 +257,8 @@ resolve_param_in_ty_of_const_param =
217257 the type of const parameters must not depend on other generic parameters
218258 .label = the type must not depend on the parameter `{ $name } `
219259
260+ resolve_pattern_doesnt_bind_name = pattern doesn't bind `{ $name } `
261+
220262resolve_proc_macro_same_crate = can't use a procedural macro from the same crate that defines it
221263 .help = you can define integration tests in a directory named `tests`
222264
@@ -254,6 +296,9 @@ resolve_self_in_generic_param_default =
254296 generic parameters cannot use `Self` in their defaults
255297 .label = `Self` in generic parameter default
256298
299+ resolve_static_lifetime_is_reserved = invalid lifetime parameter name: `{ $ident } `
300+ .label = 'static is a reserved lifetime name
301+
257302resolve_tool_module_imported =
258303 cannot use a tool module through an import
259304 .note = the tool module imported here
@@ -284,12 +329,18 @@ resolve_undeclared_label =
284329 use of undeclared label `{ $name } `
285330 .label = undeclared label `{ $name } `
286331
332+ resolve_underscore_lifetime_is_reserved = `'_` cannot be used here
333+ .label = `'_` is a reserved lifetime name
334+
287335resolve_unexpected_res_change_ty_to_const_param_sugg =
288336 you might have meant to write a const parameter here
289337
290338resolve_unexpected_res_use_at_op_in_slice_pat_with_range_sugg =
291339 if you meant to collect the rest of the slice in `{ $ident } `, use the at operator
292340
341+ resolve_unnamed_crate_root_import =
342+ crate root imports need to be explicitly named: `use crate as name;`
343+
293344resolve_unreachable_label =
294345 use of unreachable label `{ $name } `
295346 .label = unreachable label `{ $name } `
@@ -312,3 +363,8 @@ resolve_variable_bound_with_different_mode =
312363 variable `{ $variable_name } ` is bound inconsistently across alternatives separated by `|`
313364 .label = bound in different ways
314365 .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