pub(crate) fn annotate_err_with_kind(
    err: &mut Diag<'_>,
    kind: AstFragmentKind,
    span: Span
)