Account for structs that have unused params in nested types in fields

This commit is contained in:
Michael Goulet 2024-07-17 18:05:21 -04:00
parent a0a251a688
commit c02d0de871
8 changed files with 128 additions and 37 deletions

View file

@ -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)]