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
|
@ -1597,6 +1597,8 @@ pub(crate) struct UnusedGenericParameter {
|
|||
pub span: Span,
|
||||
pub param_name: Ident,
|
||||
pub param_def_kind: &'static str,
|
||||
#[label(hir_analysis_usage_spans)]
|
||||
pub usage_spans: Vec<Span>,
|
||||
#[subdiagnostic]
|
||||
pub help: UnusedGenericParameterHelp,
|
||||
#[help(hir_analysis_const_param_help)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue