pub(crate) fn default_track_diagnostic<R>(
    diag: DiagInner,
    f: &mut dyn FnMut(DiagInner) -> R
) -> R