Skip to content

Commit b7bc90f

Browse files
committed
Auto merge of #104120 - mejrs:diag, r=davidtwco
Match and enforce crate and slug names Some of these were in the wrong place or had a name that didn't match.
2 parents 1cbc459 + f47abd8 commit b7bc90f

File tree

26 files changed

+819
-737
lines changed

26 files changed

+819
-737
lines changed

compiler/rustc_error_messages/locales/en-US/borrowck.ftl

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ borrowck_var_does_not_need_mut =
2424
variable does not need to be mutable
2525
.suggestion = remove this `mut`
2626
27-
borrowck_const_not_used_in_type_alias =
28-
const parameter `{$ct}` is part of concrete type but not used in parameter list for the `impl Trait` type alias
29-
3027
borrowck_var_cannot_escape_closure =
3128
captured variable cannot escape `FnMut` closure body
3229
.note = `FnMut` closures only have access to their captured variables while they are executing...

compiler/rustc_error_messages/locales/en-US/hir_analysis.ftl

-40
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
61
hir_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-
6052
hir_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-
7957
hir_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-
9562
hir_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
135102
hir_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-
141104
hir_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 =
150113
hir_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

compiler/rustc_error_messages/locales/en-US/hir_typeck.ftl

+40
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,43 @@ hir_typeck_fru_suggestion =
66
[NONE]{""}
77
*[other] {" "}from `{$expr}`
88
}, separate the last named field with a comma
9+
10+
hir_typeck_field_multiply_specified_in_initializer =
11+
field `{$ident}` specified more than once
12+
.label = used more than once
13+
.previous_use_label = first use of `{$ident}`
14+
15+
hir_typeck_return_stmt_outside_of_fn_body =
16+
return statement outside of function body
17+
.encl_body_label = the return is part of this body...
18+
.encl_fn_label = ...not the enclosing function body
19+
20+
hir_typeck_yield_expr_outside_of_generator =
21+
yield expression outside of generator literal
22+
23+
hir_typeck_struct_expr_non_exhaustive =
24+
cannot create non-exhaustive {$what} using struct expression
25+
26+
hir_typeck_method_call_on_unknown_type =
27+
the type of this value must be known to call a method on a raw pointer on it
28+
29+
hir_typeck_functional_record_update_on_non_struct =
30+
functional record update syntax requires a struct
31+
32+
hir_typeck_address_of_temporary_taken = cannot take address of a temporary
33+
.label = temporary value
34+
35+
hir_typeck_add_return_type_add = try adding a return type
36+
37+
hir_typeck_add_return_type_missing_here = a return type might be missing here
38+
39+
hir_typeck_expected_default_return_type = expected `()` because of default return type
40+
41+
hir_typeck_expected_return_type = expected `{$expected}` because of return type
42+
43+
hir_typeck_missing_parentheses_in_range = can't call method `{$method_name}` on type `{$ty_str}`
44+
45+
hir_typeck_add_missing_parentheses_in_range = you must surround the range in parentheses to call its `{$func_name}` function
46+
47+
hir_typeck_op_trait_generic_params =
48+
`{$method_name}` must not have any generic parameters

compiler/rustc_error_messages/locales/en-US/middle.ftl

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ middle_cannot_be_normalized =
3131
middle_strict_coherence_needs_negative_coherence =
3232
to use `strict_coherence` on this trait, the `with_negative_coherence` feature must be enabled
3333
.label = due to this attribute
34+
35+
middle_const_not_used_in_type_alias =
36+
const parameter `{$ct}` is part of concrete type but not used in parameter list for the `impl Trait` type alias

0 commit comments

Comments
 (0)