fn suggest_call_constructor<G: EmissionGuarantee>(
    span: Span,
    kind: CtorOf,
    params: usize,
    err: &mut DiagnosticBuilder<'_, G>
)
Expand description

Suggests calling the constructor of a tuple struct or enum variant

  • snippet - The snippet of code that references the constructor
  • span - The span of the snippet
  • params - The number of parameters the constructor accepts
  • err - A mutable diagnostic builder to add the suggestion to