Skip to main content

restore_report_counts

Function restore_report_counts 

Source
pub fn restore_report_counts(c: ReportCounts)
Expand description

Overwrite the current thread’s REPORT counters with a prior snapshot. The isolation primitive for RECURSIVE/auxiliary digestions whose diagnostics must not count against the document (Perl analog: the recursive MakeBibliography session keeps its tally out of the outer document). Pair with set_suppress_log_output so neither the lines nor the counts leak: snapshot -> suppress -> digest -> restore.