1- hir_analysis_field_multiply_specified_in_initializer =
2- field `{ $ident } ` specified more than once
3- .label = used more than once
4- .previous_use_label = first use of `{ $ident } `
5-
61hir_analysis_unrecognized_atomic_operation =
72 unrecognized atomic operation function: `{ $op } `
83 .label = unrecognized atomic operation
@@ -54,44 +49,16 @@ hir_analysis_assoc_type_binding_not_allowed =
5449 associated type bindings are not allowed here
5550 .label = associated type not allowed here
5651
57- hir_analysis_functional_record_update_on_non_struct =
58- functional record update syntax requires a struct
59-
6052hir_analysis_typeof_reserved_keyword_used =
6153 `typeof` is a reserved keyword but unimplemented
6254 .suggestion = consider replacing `typeof(...)` with an actual type
6355 .label = reserved keyword
6456
65- hir_analysis_return_stmt_outside_of_fn_body =
66- return statement outside of function body
67- .encl_body_label = the return is part of this body...
68- .encl_fn_label = ...not the enclosing function body
69-
70- hir_analysis_yield_expr_outside_of_generator =
71- yield expression outside of generator literal
72-
73- hir_analysis_struct_expr_non_exhaustive =
74- cannot create non-exhaustive { $what } using struct expression
75-
76- hir_analysis_method_call_on_unknown_type =
77- the type of this value must be known to call a method on a raw pointer on it
78-
7957hir_analysis_value_of_associated_struct_already_specified =
8058 the value of the associated type `{ $item_name } ` (from trait `{ $def_path } `) is already specified
8159 .label = re-bound here
8260 .previous_bound_label = `{ $item_name } ` bound here first
8361
84- hir_analysis_address_of_temporary_taken = cannot take address of a temporary
85- .label = temporary value
86-
87- hir_analysis_add_return_type_add = try adding a return type
88-
89- hir_analysis_add_return_type_missing_here = a return type might be missing here
90-
91- hir_analysis_expected_default_return_type = expected `()` because of default return type
92-
93- hir_analysis_expected_return_type = expected `{ $expected } ` because of return type
94-
9562hir_analysis_unconstrained_opaque_type = unconstrained opaque type
9663 .note = `{ $name } ` must be used in combination with a concrete type within the same { $what }
9764
@@ -134,10 +101,6 @@ hir_analysis_extern_crate_not_idiomatic =
134101
135102hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
136103
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-
141104hir_analysis_const_impl_for_non_const_trait =
142105 const `impl` for trait `{ $trait_name } ` which is not marked with `#[const_trait]`
143106 .suggestion = mark `{ $trait_name } ` as const
@@ -150,6 +113,3 @@ hir_analysis_const_bound_for_non_const_trait =
150113hir_analysis_self_in_impl_self =
151114 `Self` is not valid in the self type of an impl block
152115 .note = replace `Self` with a different type
153-
154- hir_analysis_op_trait_generic_params =
155- `{ $method_name } ` must not have any generic parameters
0 commit comments