pub(crate) fn record_match_fails_reasons_scope<F, T>( debug_active: bool, f: F, ) -> Twhere F: Fn() -> T,