1
- typeck_field_multiply_specified_in_initializer =
1
+ hir_analysis_field_multiply_specified_in_initializer =
2
2
field `{ $ident } ` specified more than once
3
3
.label = used more than once
4
4
.previous_use_label = first use of `{ $ident } `
5
5
6
- typeck_unrecognized_atomic_operation =
6
+ hir_analysis_unrecognized_atomic_operation =
7
7
unrecognized atomic operation function: `{ $op } `
8
8
.label = unrecognized atomic operation
9
9
10
- typeck_wrong_number_of_generic_arguments_to_intrinsic =
10
+ hir_analysis_wrong_number_of_generic_arguments_to_intrinsic =
11
11
intrinsic has wrong number of { $descr } parameters: found { $found } , expected { $expected }
12
12
.label = expected { $expected } { $descr } { $expected ->
13
13
[ one ] parameter
14
14
*[ other ] parameters
15
15
}
16
16
17
- typeck_unrecognized_intrinsic_function =
17
+ hir_analysis_unrecognized_intrinsic_function =
18
18
unrecognized intrinsic function: `{ $name } `
19
19
.label = unrecognized intrinsic
20
20
21
- typeck_lifetimes_or_bounds_mismatch_on_trait =
21
+ hir_analysis_lifetimes_or_bounds_mismatch_on_trait =
22
22
lifetime parameters or bounds on { $item_kind } `{ $ident } ` do not match the trait declaration
23
23
.label = lifetimes do not match { $item_kind } in trait
24
24
.generics_label = lifetimes in impl do not match this { $item_kind } in trait
25
25
26
- typeck_drop_impl_on_wrong_item =
26
+ hir_analysis_drop_impl_on_wrong_item =
27
27
the `Drop` trait may only be implemented for local structs, enums, and unions
28
28
.label = must be a struct, enum, or union in the current crate
29
29
30
- typeck_field_already_declared =
30
+ hir_analysis_field_already_declared =
31
31
field `{ $field_name } ` is already declared
32
32
.label = field already declared
33
33
.previous_decl_label = `{ $field_name } ` first declared here
34
34
35
- typeck_copy_impl_on_type_with_dtor =
35
+ hir_analysis_copy_impl_on_type_with_dtor =
36
36
the trait `Copy` may not be implemented for this type; the type has a destructor
37
37
.label = `Copy` not allowed on types with destructors
38
38
39
- typeck_multiple_relaxed_default_bounds =
39
+ hir_analysis_multiple_relaxed_default_bounds =
40
40
type parameter has more than one relaxed default bound, only one is supported
41
41
42
- typeck_copy_impl_on_non_adt =
42
+ hir_analysis_copy_impl_on_non_adt =
43
43
the trait `Copy` may not be implemented for this type
44
44
.label = type is not a structure or enumeration
45
45
46
- typeck_trait_object_declared_with_no_traits =
46
+ hir_analysis_trait_object_declared_with_no_traits =
47
47
at least one trait is required for an object type
48
48
.alias_span = this alias does not contain a trait
49
49
50
- typeck_ambiguous_lifetime_bound =
50
+ hir_analysis_ambiguous_lifetime_bound =
51
51
ambiguous lifetime bound, explicit lifetime bound required
52
52
53
- typeck_assoc_type_binding_not_allowed =
53
+ hir_analysis_assoc_type_binding_not_allowed =
54
54
associated type bindings are not allowed here
55
55
.label = associated type not allowed here
56
56
57
- typeck_functional_record_update_on_non_struct =
57
+ hir_analysis_functional_record_update_on_non_struct =
58
58
functional record update syntax requires a struct
59
59
60
- typeck_typeof_reserved_keyword_used =
60
+ hir_analysis_typeof_reserved_keyword_used =
61
61
`typeof` is a reserved keyword but unimplemented
62
62
.suggestion = consider replacing `typeof(...)` with an actual type
63
63
.label = reserved keyword
64
64
65
- typeck_return_stmt_outside_of_fn_body =
65
+ hir_analysis_return_stmt_outside_of_fn_body =
66
66
return statement outside of function body
67
67
.encl_body_label = the return is part of this body...
68
68
.encl_fn_label = ...not the enclosing function body
69
69
70
- typeck_yield_expr_outside_of_generator =
70
+ hir_analysis_yield_expr_outside_of_generator =
71
71
yield expression outside of generator literal
72
72
73
- typeck_struct_expr_non_exhaustive =
73
+ hir_analysis_struct_expr_non_exhaustive =
74
74
cannot create non-exhaustive { $what } using struct expression
75
75
76
- typeck_method_call_on_unknown_type =
76
+ hir_analysis_method_call_on_unknown_type =
77
77
the type of this value must be known to call a method on a raw pointer on it
78
78
79
- typeck_value_of_associated_struct_already_specified =
79
+ hir_analysis_value_of_associated_struct_already_specified =
80
80
the value of the associated type `{ $item_name } ` (from trait `{ $def_path } `) is already specified
81
81
.label = re-bound here
82
82
.previous_bound_label = `{ $item_name } ` bound here first
83
83
84
- typeck_address_of_temporary_taken = cannot take address of a temporary
84
+ hir_analysis_address_of_temporary_taken = cannot take address of a temporary
85
85
.label = temporary value
86
86
87
- typeck_add_return_type_add = try adding a return type
87
+ hir_analysis_add_return_type_add = try adding a return type
88
88
89
- typeck_add_return_type_missing_here = a return type might be missing here
89
+ hir_analysis_add_return_type_missing_here = a return type might be missing here
90
90
91
- typeck_expected_default_return_type = expected `()` because of default return type
91
+ hir_analysis_expected_default_return_type = expected `()` because of default return type
92
92
93
- typeck_expected_return_type = expected `{ $expected } ` because of return type
93
+ hir_analysis_expected_return_type = expected `{ $expected } ` because of return type
94
94
95
- typeck_unconstrained_opaque_type = unconstrained opaque type
95
+ hir_analysis_unconstrained_opaque_type = unconstrained opaque type
96
96
.note = `{ $name } ` must be used in combination with a concrete type within the same module
97
97
98
- typeck_missing_type_params =
98
+ hir_analysis_missing_type_params =
99
99
the type { $parameterCount ->
100
100
[ one ] parameter
101
101
*[ other ] parameters
@@ -117,19 +117,19 @@ typeck_missing_type_params =
117
117
} to { $parameters }
118
118
.note = because of the default `Self` reference, type parameters must be specified on object types
119
119
120
- typeck_manual_implementation =
120
+ hir_analysis_manual_implementation =
121
121
manual implementations of `{ $trait_name } ` are experimental
122
122
.label = manual implementations of `{ $trait_name } ` are experimental
123
123
.help = add `#![feature(unboxed_closures)]` to the crate attributes to enable
124
124
125
- typeck_substs_on_overridden_impl = could not resolve substs on overridden impl
125
+ hir_analysis_substs_on_overridden_impl = could not resolve substs on overridden impl
126
126
127
- typeck_unused_extern_crate =
127
+ hir_analysis_unused_extern_crate =
128
128
unused extern crate
129
129
.suggestion = remove it
130
130
131
- typeck_extern_crate_not_idiomatic =
131
+ hir_analysis_extern_crate_not_idiomatic =
132
132
`extern crate` is not idiomatic in the new edition
133
133
.suggestion = convert it to a `{ $msg_code } `
134
134
135
- typeck_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
135
+ hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
0 commit comments