Account for structs that have unused params in nested types in fields
This commit is contained in:
parent
a0a251a688
commit
c02d0de871
8 changed files with 128 additions and 37 deletions
|
@ -553,6 +553,7 @@ hir_analysis_unused_generic_parameter =
|
|||
{$param_def_kind} `{$param_name}` is never used
|
||||
.label = unused {$param_def_kind}
|
||||
.const_param_help = if you intended `{$param_name}` to be a const parameter, use `const {$param_name}: /* Type */` instead
|
||||
.usage_spans = `{$param_name}` is named here, but is likely unused in the containing type
|
||||
|
||||
hir_analysis_unused_generic_parameter_adt_help =
|
||||
consider removing `{$param_name}`, referring to it in a field, or using a marker such as `{$phantom_data}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue