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
-
6
1
hir_analysis_unrecognized_atomic_operation =
7
2
unrecognized atomic operation function: `{ $op } `
8
3
.label = unrecognized atomic operation
@@ -54,44 +49,16 @@ hir_analysis_assoc_type_binding_not_allowed =
54
49
associated type bindings are not allowed here
55
50
.label = associated type not allowed here
56
51
57
- hir_analysis_functional_record_update_on_non_struct =
58
- functional record update syntax requires a struct
59
-
60
52
hir_analysis_typeof_reserved_keyword_used =
61
53
`typeof` is a reserved keyword but unimplemented
62
54
.suggestion = consider replacing `typeof(...)` with an actual type
63
55
.label = reserved keyword
64
56
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
-
79
57
hir_analysis_value_of_associated_struct_already_specified =
80
58
the value of the associated type `{ $item_name } ` (from trait `{ $def_path } `) is already specified
81
59
.label = re-bound here
82
60
.previous_bound_label = `{ $item_name } ` bound here first
83
61
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
-
95
62
hir_analysis_unconstrained_opaque_type = unconstrained opaque type
96
63
.note = `{ $name } ` must be used in combination with a concrete type within the same { $what }
97
64
@@ -134,10 +101,6 @@ hir_analysis_extern_crate_not_idiomatic =
134
101
135
102
hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
136
103
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
104
hir_analysis_const_impl_for_non_const_trait =
142
105
const `impl` for trait `{ $trait_name } ` which is not marked with `#[const_trait]`
143
106
.suggestion = mark `{ $trait_name } ` as const
@@ -150,6 +113,3 @@ hir_analysis_const_bound_for_non_const_trait =
150
113
hir_analysis_self_in_impl_self =
151
114
`Self` is not valid in the self type of an impl block
152
115
.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