Skip to content

Commit 131211a

Browse files
committed
Auto merge of #110043 - ickk:fix_infer_message, r=eholk
Fix help message for `infer_source_kind_subdiag_let` I discovered there's a double "the" in the help message for E0282.
2 parents 0f0dc29 + 30f458e commit 131211a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/rustc_infer/messages.ftl

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ infer_source_kind_subdiag_let = {$kind ->
3030
}{$x_kind ->
3131
[has_name] , where the {$prefix_kind ->
3232
*[type] type for {$prefix}
33-
[const_with_param] the value of const parameter
34-
[const] the value of the constant
33+
[const_with_param] value of const parameter
34+
[const] value of the constant
3535
} `{$arg_name}` is specified
3636
[underscore] , where the placeholders `_` are specified
3737
*[empty] {""}

tests/ui/const-generics/defaults/doesnt_infer.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `Foo<N>`
44
LL | let foo = Foo::foo();
55
| ^^^
66
|
7-
help: consider giving `foo` an explicit type, where the the value of const parameter `N` is specified
7+
help: consider giving `foo` an explicit type, where the value of const parameter `N` is specified
88
|
99
LL | let foo: Foo<N> = Foo::foo();
1010
| ++++++++

tests/ui/inference/issue-83606.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `[usize; N]`
44
LL | let _ = foo("foo");
55
| ^
66
|
7-
help: consider giving this pattern a type, where the the value of const parameter `N` is specified
7+
help: consider giving this pattern a type, where the value of const parameter `N` is specified
88
|
99
LL | let _: [usize; N] = foo("foo");
1010
| ++++++++++++

tests/ui/issues/issue-98299.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed for `SmallCString<N>`
44
LL | SmallCString::try_from(p).map(|cstr| cstr);
55
| ^^^^
66
|
7-
help: consider giving this closure parameter an explicit type, where the the value of const parameter `N` is specified
7+
help: consider giving this closure parameter an explicit type, where the value of const parameter `N` is specified
88
|
99
LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
1010
| +++++++++++++++++

0 commit comments

Comments
 (0)