rustc_hir_analysis::collect

Function placeholder_type_error_diag

Source
pub(crate) fn placeholder_type_error_diag<'cx, 'tcx>(
    cx: &'cx dyn HirTyLowerer<'tcx>,
    generics: Option<&Generics<'_>>,
    placeholder_types: Vec<Span>,
    additional_spans: Vec<Span>,
    suggest: bool,
    hir_ty: Option<&Ty<'_>>,
    kind: &'static str,
) -> Diag<'cx>