typeck: port "missing type params"
Port the "the type parameter `T` must be explicitly specified" diagnostic to using a diagnostic struct. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
de3e8ca2f3
commit
78cc331bd7
3 changed files with 92 additions and 58 deletions
|
@ -100,3 +100,25 @@ typeck-explicit-generic-args-with-impl-trait =
|
|||
.label = explicit generic argument not allowed
|
||||
.note = see issue #83701 <https://github.com/rust-lang/rust/issues/83701> for more information
|
||||
.help = add `#![feature(explicit_generic_args_with_impl_trait)]` to the crate attributes to enable
|
||||
|
||||
typeck-missing-type-params =
|
||||
the type {$parameterCount ->
|
||||
[one] parameter
|
||||
*[other] parameters
|
||||
} {$parameters} must be explicitly specified
|
||||
.label = type {$parameterCount ->
|
||||
[one] parameter
|
||||
*[other] parameters
|
||||
} {$parameters} must be specified for this
|
||||
.suggestion = set the type {$parameterCount ->
|
||||
[one] parameter
|
||||
*[other] parameters
|
||||
} to the desired {$parameterCount ->
|
||||
[one] type
|
||||
*[other] types
|
||||
}
|
||||
.no-suggestion-label = missing {$parameterCount ->
|
||||
[one] reference
|
||||
*[other] references
|
||||
} to {$parameters}
|
||||
.note = because of the default `Self` reference, type parameters must be specified on object types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue