Skip to main content

verify_render_preserving

Function verify_render_preserving 

Source
pub fn verify_render_preserving(
    path: &Path,
    original: &str,
    formatted: &str,
) -> Vec<Diagnostic>
Expand description

Verify formatting is render-preserving: every macro body in the formatted output must parse to a structurally identical template tree. Differences mean the formatter changed semantics, not just layout, and the write is refused.